Function wasmer_wasix::syscalls::deep_sleep
source ยท pub(crate) fn deep_sleep<M: MemorySize>(
ctx: FunctionEnvMut<'_, WasiEnv>,
trigger: Pin<Box<dyn Future<Output = Bytes> + Send + Sync + 'static>>,
) -> Result<(), WasiError>
Expand description
Puts the process to deep sleep and wakes it again when the supplied future completes