#timer #mio #callback #wheel #mio-extra

nightly hjul

Simple and efficient timer abstraction on top of mio-extra. Every timer is associated with a callback which is executed whenever the timer expires, timers can be stopped and reset, in which case the callback might be executed multiple times. The primary intended application is one in which timers have a bounded maximum duration (e.g. at most 10 minutes) and have to be cancelled and restarted very often.

4 releases

✓ Uses Rust 2018 edition

0.2.0 Sep 22, 2019
0.1.2 Aug 26, 2019
0.1.1 Aug 25, 2019
0.1.0 Aug 24, 2019

#6 in #callback

Download history 3/week @ 2019-08-18 73/week @ 2019-08-25 19/week @ 2019-09-01 19/week @ 2019-09-08 33/week @ 2019-09-15

55 downloads per month

MIT license

15KB
247 lines

Hjul

Hjul is a thin wrapper around mio-extra timers. Example usage:

Dependencies

~1MB
~18K SLoC