kithara-platform
Platform-aware runtime primitives for native and wasm32 targets. This crate is the portability boundary for synchronization, thread/task spawning, timing helpers, and conditional trait bounds used across the workspace.
Usage
use ;
let lock = new;
sleep.await;
Synchronization Backends
Thread and Task Primitives
Time Utilities
time::sleep(duration)time::timeout(duration, future)time::Instant(viaweb-time)
On native these delegate to tokio runtime primitives, on wasm they use setTimeout-based scheduling.
Integration
Foundation crate used across the workspace (kithara-storage, kithara-assets, kithara-stream, kithara-play, kithara-wasm, and test infrastructure) to keep platform-specific branching isolated in one place.