use crate::Executor; #[derive(Debug)] pub struct WasmBindgen; impl Executor for WasmBindgen { fn new() -> Result { Ok(Self) } fn spawn( &self, future: impl futures::Future + Send + 'static, ) { wasm_bindgen_futures::spawn_local(future); } }