#rate-limiting #threaded

fence

A rate limiter for threaded programs

2 releases

Uses old Rust 2015

0.0.2 Sep 17, 2016
0.0.1 Sep 17, 2016

#7 in #rate-limiter


Used in captain-workflow-manager

MIT/Apache

6KB
52 lines

fence

A simple rate limiter.

Examples

let mut f = Fence::from_secs(1);

loop {
  // Something expensive
  f.sleep();
}

No runtime deps