// SPDX-License-Identifier: Apache-2.0 // SPDX-FileCopyrightText: 2019-2024 Second State INC #include "func.h" #include "common/defines.h" #include "common/errcode.h" namespace WasmEdge { namespace Host { Expect Drop::body(Pollable P) { Env.dropPollable(P); return {}; } Expect> PollOneoff::body(List In) { std::vector Res; for (auto P : In.collection()) { Res.push_back(Env.isPollable(P)); } return List(std::move(Res)); } } // namespace Host } // namespace WasmEdge