Function wasmedge_sys::ffi::WasmEdge_ExecutorAsyncInvoke
source · pub unsafe extern "C" fn WasmEdge_ExecutorAsyncInvoke(
Cxt: *mut WasmEdge_ExecutorContext,
FuncCxt: *const WasmEdge_FunctionInstanceContext,
Params: *const WasmEdge_Value,
ParamLen: u32
) -> *mut WasmEdge_Async
Expand description
Asynchronous invoke a WASM function by the function instance.
After instantiating a WASM module, developers can get the function instance context from the module instance. Then developers can invoke the function asynchronously through this API.
\param Cxt the WasmEdge_ExecutorContext. \param FuncCxt the function instance context to invoke. \param Params the WasmEdge_Value buffer with the parameter values. \param ParamLen the parameter buffer length.
\returns WasmEdge_Async. Call WasmEdge_AsyncGet
for the result, and call
WasmEdge_AsyncDelete
to destroy this object.