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

Function WasmEdge_ExecutorAsyncInvoke

lib/api/wasmedge.cpp:2202–2217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2200}
2201
2202WASMEDGE_CAPI_EXPORT WasmEdge_Async *
2203WasmEdge_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
2219WASMEDGE_CAPI_EXPORT void
2220WasmEdge_ExecutorDelete(WasmEdge_ExecutorContext *Cxt) noexcept {

Callers 2

TESTFunction · 0.85
TESTFunction · 0.85

Calls 2

genParamPairFunction · 0.85
handleCAPIErrorFunction · 0.85

Tested by 2

TESTFunction · 0.68
TESTFunction · 0.68