kithara-platform 0.0.1-alpha4

Cross-platform primitives (sync, time, thread) for native and wasm32.
Documentation
1
2
3
4
5
6
7
8
/// Ensure the platform task pool is initialized before browser-side tests run.
///
/// Eagerly touches the blocking task backend once so browser tests do not pay
/// lazy worker-pool setup in the measured path.
#[inline]
pub async fn ensure_thread_pool() {
    let _ = super::task::spawn_blocking(|| {}).await;
}