5 unstable releases
Uses old Rust 2015
0.3.2 | Mar 28, 2016 |
---|---|
0.3.1 | Mar 3, 2016 |
0.3.0 | Mar 1, 2016 |
0.2.0 | Feb 3, 2016 |
0.1.0 | Feb 3, 2016 |
#2462 in Algorithms
133 downloads per month
Used in 3 crates
20KB
341 lines
Rotor Tools
Documentation: | http://tailhook.github.io/rotor-tools/ |
---|
This module contains various tools that are useful for wrinting applications using rotor asynchronous framework for rust.
The tools here could be the core of rotor we are trying to make rotor itself as small as possible, because all things in the same application (actually the same main loop) should have same version of rotor core library. But different versions of other libraries are possible, including rotor-tools.
Tools included:
- Simplified state machines:
- A bare timer, including interval_func(duration, |_| { do_something() })
- Loop setup helpers
- LoopExt::add_and_fetch -- easier setup of client protocols
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.
Dependencies
~4MB
~72K SLoC