MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / WasmEdge_VMAsyncExecute

Function WasmEdge_VMAsyncExecute

lib/api/wasmedge.cpp:3461–3475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3459}
3460
3461WASMEDGE_CAPI_EXPORT WasmEdge_Async *
3462WasmEdge_VMAsyncExecute(WasmEdge_VMContext *Cxt, const WasmEdge_String FuncName,
3463 const WasmEdge_Value *Params,
3464 const uint32_t ParamLen) noexcept {
3465 try {
3466 auto ParamPair = genParamPair(Params, ParamLen);
3467 if (Cxt) {
3468 return new WasmEdge_Async(Cxt->VM.asyncExecute(
3469 genStrView(FuncName), ParamPair.first, ParamPair.second));
3470 }
3471 } catch (...) {
3472 handleCAPIError();
3473 }
3474 return nullptr;
3475}
3476
3477WASMEDGE_CAPI_EXPORT WasmEdge_Async *WasmEdge_VMAsyncExecuteRegistered(
3478 WasmEdge_VMContext *Cxt, const WasmEdge_String ModuleName,

Callers 2

TESTFunction · 0.85
TESTFunction · 0.85

Calls 3

genParamPairFunction · 0.85
genStrViewFunction · 0.85
handleCAPIErrorFunction · 0.85

Tested by 2

TESTFunction · 0.68
TESTFunction · 0.68