Function wasmer_wasix::syscalls::__asyncify
source ยท pub(crate) fn __asyncify<T, Fut>(
ctx: &mut FunctionEnvMut<'_, WasiEnv>,
timeout: Option<Duration>,
work: Fut,
) -> WasiResult<T>
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