| 3459 | } |
| 3460 | |
| 3461 | WASMEDGE_CAPI_EXPORT WasmEdge_Async * |
| 3462 | WasmEdge_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 | |
| 3477 | WASMEDGE_CAPI_EXPORT WasmEdge_Async *WasmEdge_VMAsyncExecuteRegistered( |
| 3478 | WasmEdge_VMContext *Cxt, const WasmEdge_String ModuleName, |