wasmer_wasix::syscalls

Function __asyncify_light

Source
pub(crate) fn __asyncify_light<T, Fut>(
    env: &WasiEnv,
    _timeout: Option<Duration>,
    work: Fut,
) -> WasiResult<T>
where T: 'static, Fut: Future<Output = Result<T, Errno>>,
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