From 167be45a7db7c1f60a79116766bdf38300429c6a Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 28 Jan 2022 18:24:07 +0700 Subject: Split `iced_futures` into different `backend` implementations --- futures/src/executor/wasm_bindgen.rs | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 futures/src/executor/wasm_bindgen.rs (limited to 'futures/src/executor/wasm_bindgen.rs') diff --git a/futures/src/executor/wasm_bindgen.rs b/futures/src/executor/wasm_bindgen.rs deleted file mode 100644 index 94d694c8..00000000 --- a/futures/src/executor/wasm_bindgen.rs +++ /dev/null @@ -1,15 +0,0 @@ -use crate::Executor; - -/// A `wasm-bindgen-futures` runtime. -#[derive(Debug)] -pub struct WasmBindgen; - -impl Executor for WasmBindgen { - fn new() -> Result { - Ok(Self) - } - - fn spawn(&self, future: impl futures::Future + 'static) { - wasm_bindgen_futures::spawn_local(future); - } -} -- cgit