bloom-client 0.1.0

Client-side rendering for bloom-core
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use futures_util::task::Spawn;

pub(crate) struct WasmSpawner;

impl Spawn for WasmSpawner {
    fn spawn_obj(
        &self,
        future: futures_util::task::FutureObj<'static, ()>,
    ) -> Result<(), futures_util::task::SpawnError> {
        wasm_bindgen_futures::spawn_local(future);
        Ok(())
    }
}