ryot 0.2.2

MMORPG library based on the concepts of open tibia written in rust and bevy.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::future::Future;

#[cfg(not(target_arch = "wasm32"))]
pub fn execute<F: Future<Output = ()> + Send + 'static>(f: F) {
    async_std::task::spawn(f);
}

#[cfg(target_arch = "wasm32")]
pub fn execute<F: Future<Output = ()> + 'static>(f: F) {
    wasm_bindgen_futures::spawn_local(f);
}