[−][src]Crate async_timer
Async timer lib
Timers
- Timer interface to one-shot Platform Timer, may require event loop.
- SyncTimer interface to one-shot Platform Timer, does not require event loop.
Primitives
- Timed - A wrapper over future that allows to limit time for the future to resolve.
- Interval - Periodic timer, that on each completition returns itself to poll once again with the same interval.
Features
- tokio02- Enables event loop based timers using tokio 0.2, providing higher accuracy than regular callback based timers on Linux/BSD/Apple platforms
- c_wrapper- Uses C shim to create bindings to platform API, which may be more reliable than- libc.
Re-exports
| pub use state::Callback; | 
| pub use timer::SyncTimer; | 
| pub use timer::Timer; | 
| pub use timer::new_sync_timer; | 
| pub use timer::new_timer; | 
Modules
| state | State module | 
| timer | Raw Timer | 
Structs
| Expired | Error when Timed expires | 
| Interval | Periodic Timer | 
Enums
| Timed | Limiter on time to wait for underlying  | 
Functions
| interval | Creates interval with default Platform timer. | 
| timed | Run future in timed fashion using default Platform timer. |