mio-timer
A simple timer library for mio 1.0, which is originally part of the mio 0.6. From mio 0.7, the timer functionality has been removed from the mio crate.
This crate is the timer component from mio 0.6, adapted for mio 1.0. It provides the same basic functionality and usage patterns as the timer module in mio 0.6.
Usage
use *;
use ;
use ;
use Duration;
const TIMER: Token = Token;
let mut poll = new?;
let mut events = with_capacity;
let mut timer: = default.build;
poll.registry.register?;
timer.set_timeout;
loop
Check the examples directory for detail usage examples.
Related Projects
- mio-channel compatible with mio 1.0
- mio-misc compatible with mio 0.8
- mio-extras compatible with mio 0.6