wasmedge_sys::ffi

Function WasmEdge_AsyncWaitFor

Source
pub unsafe extern "C" fn WasmEdge_AsyncWaitFor(
    Cxt: *const WasmEdge_Async,
    Milliseconds: u64,
) -> bool
Expand description

Wait a WasmEdge_Async execution with timeout.

\param Cxt the WasmEdge_ASync. \param Milliseconds times to wait.

\returns Result of waiting, true for execution ended, false for timeout occurred.