Skip to main content

WasmEdge_AsyncGetReturnsLength

Function WasmEdge_AsyncGetReturnsLength 

Source
pub unsafe extern "C" fn WasmEdge_AsyncGetReturnsLength(
    Cxt: *const WasmEdge_Async,
) -> u32
Expand description

Wait and get the return list length of the WasmEdge_Async execution.

This function will wait until the execution finishes and return the return value list length of the executed function. This function will return 0 if the Cxt is NULL, the execution failed, or the execution was canceled. Developers can call the WasmEdge_AsyncGet to get the execution status and the return values.

\param Cxt the WasmEdge_Async.

\returns the return list length of the executed function.