//! A `wasm-bindgein-futures` backend. /// A `wasm-bindgen-futures` executor. #[derive(Debug)] pub struct Executor; impl crate::Executor for Executor { fn new() -> Result { Ok(Self) } fn spawn(&self, future: impl futures::Future + 'static) { wasm_bindgen_futures::spawn_local(future); } }