main-loop-async 0.1.1

Makes running async code from a main loop (ui loop, game loop) more ergonomic
Documentation
1
2
3
4
5
6
7
8
9
//! Stores the code specific to wasm compilations

/// dox
pub fn spawn<F>(future: F)
where
    F: futures::Future<Output = ()> + 'static,
{
    wasm_bindgen_futures::spawn_local(future);
}