kithara-platform 0.0.1-alpha5

Cross-platform primitives (sync, time, thread) for native and wasm32.
Documentation
1
2
3
4
5
6
7
8
9
10
11
pub use core::time::Duration;

pub(crate) use web_time::Instant;
pub use web_time::{Instant as WallInstant, SystemTime};

/// Error returned when an async operation exceeds its deadline.
#[derive(Debug, derive_more::Display)]
#[display("operation timed out")]
#[derive(derive_more::Error)]
#[error(ignore)]
pub struct TimeoutError;