quota 0.1.2

High-performance Rate-limiter
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::{QuotaPolicy, RefillRate};
use super::QuotaPool;
#[test]
fn pool_quota_ref_is_not_dangling() {
    /*
    let policy = QuotaPolicy::new()
        .set_capacity(10.0)
        .set_refill_rate(RefillRate::per_sec(3));

    let pool = QuotaPool::new(policy, 10);

    let mut results = vec![];
    for _ in 0..100 {
        results.push(pool.consume("testing", 1));
    }*/
}