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

Function WasmEdge_VMAsyncExecuteRegistered

lib/api/wasmedge.cpp:3477–3492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3475}
3476
3477WASMEDGE_CAPI_EXPORT WasmEdge_Async *WasmEdge_VMAsyncExecuteRegistered(
3478 WasmEdge_VMContext *Cxt, const WasmEdge_String ModuleName,
3479 const WasmEdge_String FuncName, const WasmEdge_Value *Params,
3480 const uint32_t ParamLen) noexcept {
3481 try {
3482 auto ParamPair = genParamPair(Params, ParamLen);
3483 if (Cxt) {
3484 return new WasmEdge_Async(
3485 Cxt->VM.asyncExecute(genStrView(ModuleName), genStrView(FuncName),
3486 ParamPair.first, ParamPair.second));
3487 }
3488 } catch (...) {
3489 handleCAPIError();
3490 }
3491 return nullptr;
3492}
3493
3494WASMEDGE_CAPI_EXPORT const WasmEdge_FunctionTypeContext *
3495WasmEdge_VMGetFunctionType(const WasmEdge_VMContext *Cxt,

Callers 1

TESTFunction · 0.85

Calls 3

genParamPairFunction · 0.85
genStrViewFunction · 0.85
handleCAPIErrorFunction · 0.85

Tested by 1

TESTFunction · 0.68