avail-rust-client 0.5.1

Avail Rust SDK client library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Platform-specific async runtime primitives for native and WASM targets.
//!
//! Provides unified interfaces for `sleep` and `spawn` operations across different runtime environments.

#[cfg(feature = "native")]
pub use tokio::time::sleep;

#[cfg(feature = "wasm")]
pub use wasmtimer::tokio::sleep;

#[cfg(feature = "native")]
pub use tokio::spawn;

#[cfg(feature = "wasm")]
pub use wasm_bindgen_futures::spawn_local as spawn;