Function wasmer_wasix::block_in_place

source ยท
pub(crate) fn block_in_place<Ret>(thunk: impl FnOnce() -> Ret) -> Ret
Expand description

Run a synchronous function that would normally be blocking.

When the sys-thread feature is enabled, this will call [tokio::task::block_in_place()]. Otherwise, it calls the function immediately.