async-rate-limiter 1.1.0

Implements a token bucket algorithm that can be used to limit API access frequency. Written in pure Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[cfg(feature = "rt-tokio")]
mod rt_tokio;
#[cfg(feature = "rt-tokio")]
pub use rt_tokio::delay;

#[cfg(feature = "rt-async-std")]
mod rt_async_std;
#[cfg(not(feature = "rt-tokio"))]
#[cfg(feature = "rt-async-std")]
#[allow(unused_imports)]
pub use rt_async_std::delay;

// pub trait JoinHandle: Send + Sync {
//     fn cancel(&mut self);
// }