Function wasmer_wasix::syscalls::__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