async once tool for lazy_static
features:
- tokio
- async-std
- wasm-bindgen-futures
sample
use lazy_static;
use Runtime;
// tokio feature
use AsyncOnce;
lazy_static!
let mut rt = new.unwrap;
rt.block_on
run tests
cargo test --features tokio
cargo test --features async-std
wasm-pack test --node -- --features wasm-bindgen-futures