| 2200 | } |
| 2201 | |
| 2202 | WASMEDGE_CAPI_EXPORT WasmEdge_Async * |
| 2203 | WasmEdge_ExecutorAsyncInvoke(WasmEdge_ExecutorContext *Cxt, |
| 2204 | const WasmEdge_FunctionInstanceContext *FuncCxt, |
| 2205 | const WasmEdge_Value *Params, |
| 2206 | const uint32_t ParamLen) noexcept { |
| 2207 | try { |
| 2208 | if (Cxt && FuncCxt) { |
| 2209 | auto ParamPair = genParamPair(Params, ParamLen); |
| 2210 | return new WasmEdge_Async(fromExecutorCxt(Cxt)->asyncInvoke( |
| 2211 | fromFuncCxt(FuncCxt), ParamPair.first, ParamPair.second)); |
| 2212 | } |
| 2213 | } catch (...) { |
| 2214 | handleCAPIError(); |
| 2215 | } |
| 2216 | return nullptr; |
| 2217 | } |
| 2218 | |
| 2219 | WASMEDGE_CAPI_EXPORT void |
| 2220 | WasmEdge_ExecutorDelete(WasmEdge_ExecutorContext *Cxt) noexcept { |