pub fn new(cap: u64, initial: u64, period: Duration) -> Self {
        Self {
            cap,
            bucket: sync(cap, initial, period),
        }
    }
/// Create a new, thread-safe limiter
///
/// `cap` is the number of total tokens available
///
/// `initial` is how many are initially available
///
/// `period` is how long it'll take to refill all of the tokens
Create a new, thread-safe limiter
`cap` is the number of total tokens available

`initial` is how many are initially available

`period` is how long it'll take to refill all of the tokens
Create a new thread - safe limiter ` cap ` is the number of total tokens available ` initial ` is how many are initially available ` period ` is how long it ' ll take to refill all of the tokens
pub fn new(cap: u64, initial: u64, period: Duration) -> Self {
        Self {
            cap,
            bucket: sync(cap, initial, period),
        }
    }
pub fn new ( cap : u64 , initial : u64 , period : Duration ) -> Self { Self { cap , bucket : sync ( cap , initial , period ) , } }
Create a new, thread-safe limiter
`cap` is the number of total tokens available
Create a new thread - safe limiter ` cap ` is the number of total tokens available
cap
u64
initial
u64
period
Duration