// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright the Vortex contributors
use crateHandle;
/// Drives a future on the current thread, spinning while no task is runnable.
///
/// A single-threaded WebAssembly thread cannot park, so we spin instead, which is sound because
/// every wake-up must come from this same thread.
pub
/// Browser WebAssembly schedules onto the JavaScript event loop.
pub
/// Every other WebAssembly target — WASI, or a browser build without `wasm-bindgen` — has no event
/// loop to schedule onto, so callers must drive a
/// [`SingleThreadRuntime`](crate::runtime::single::SingleThreadRuntime) and install its handle
/// themselves.
pub