chokepoint 0.5.1

Generic stream transformer to simulate traffic / network congestion
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![allow(unused_imports)]

#[cfg(not(target_arch = "wasm32"))]
pub use std::time::*;
#[cfg(not(target_arch = "wasm32"))]
pub use tokio::time as tokio_time;
#[cfg(not(target_arch = "wasm32"))]
pub use tokio_util::time as tokio_util;
#[cfg(target_arch = "wasm32")]
pub use wasmtimer::{
    std::*,
    tokio as tokio_time,
    tokio_util,
};