| 3475 | } |
| 3476 | |
| 3477 | WASMEDGE_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 | |
| 3494 | WASMEDGE_CAPI_EXPORT const WasmEdge_FunctionTypeContext * |
| 3495 | WasmEdge_VMGetFunctionType(const WasmEdge_VMContext *Cxt, |