kithara-platform 0.0.1-alpha5

Cross-platform primitives (sync, time, thread) for native and wasm32.
Documentation
1
2
3
4
#[cfg(target_arch = "wasm32")]
pub use futures::lock::{Mutex as AsyncMutex, MutexGuard as AsyncMutexGuard};
#[cfg(not(target_arch = "wasm32"))]
pub use tokio::sync::{Mutex as AsyncMutex, MutexGuard as AsyncMutexGuard};