Function wasmer_wasix::syscalls::wasix::thread_sleep::thread_sleep

source ·
pub fn thread_sleep<M: MemorySize + 'static>(
    ctx: FunctionEnvMut<'_, WasiEnv>,
    duration: Timestamp,
) -> Result<Errno, WasiError>
Expand description

§thread_sleep()

Sends the current thread to sleep for a period of time

§Parameters

  • duration - Amount of time that the thread should sleep