| 3152 | } |
| 3153 | |
| 3154 | WASMEDGE_CAPI_EXPORT uint32_t |
| 3155 | WasmEdge_AsyncGetReturnsLength(const WasmEdge_Async *Cxt) noexcept { |
| 3156 | if (Cxt) { |
| 3157 | if (auto Res = Cxt->Async.get()) { |
| 3158 | return static_cast<uint32_t>((*Res).size()); |
| 3159 | } |
| 3160 | } |
| 3161 | return 0; |
| 3162 | } |
| 3163 | |
| 3164 | WASMEDGE_CAPI_EXPORT WasmEdge_Result |
| 3165 | WasmEdge_AsyncGet(const WasmEdge_Async *Cxt, WasmEdge_Value *Returns, |