Pendulum
Data structures and runtimes for efficient timer management.
Usage
Cargo.toml:
[dependencies]
pendulum = "0.3"
lib.rs/main.rs:
extern crate pendulum;
Examples
Usage of the futures base Timer runtime:
extern crate pendulum;
extern crate futures;
use Duration;
use Stream;
use mpsc;
use HashedWheelBuilder;
use ;
Usage of the Pendulum data structure:
extern crate pendulum;
use Duration;
use thread;
use ;
;
References
- tokio-timer: https://github.com/tokio-rs/tokio-timer
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.