Function wasmer_wasix::syscalls::__asyncify_with_deep_sleep
source ยท pub(crate) fn __asyncify_with_deep_sleep<M: MemorySize, T, Fut>(
ctx: FunctionEnvMut<'_, WasiEnv>,
work: Fut,
) -> Result<AsyncifyAction<'_, T>, WasiError>
Expand description
Asyncify takes the current thread and blocks on the async runtime associated with it thus allowed for asynchronous operations to execute. It has built in functionality to (optionally) timeout the IO, force exit the process, callback signals and pump synchronous IO engine
This will either return the ctx
as the asyncify has completed successfully
or it will return an WasiError which will exit the WASM call using asyncify
and instead process it on a shared task