13 releases

✓ Uses Rust 2018 edition

0.2.0-alpha.1 Aug 8, 2019
0.1.9 Mar 2, 2019
0.1.7 Nov 22, 2018
0.1.2 Jun 13, 2018
0.1.1 Mar 23, 2018

#8 in Asynchronous

Download history 67690/week @ 2019-06-17 66344/week @ 2019-06-24 60692/week @ 2019-07-01 62967/week @ 2019-07-08 65201/week @ 2019-07-15 67016/week @ 2019-07-22 70455/week @ 2019-07-29 74369/week @ 2019-08-05 79398/week @ 2019-08-12 73062/week @ 2019-08-19 71971/week @ 2019-08-26 74900/week @ 2019-09-02 74932/week @ 2019-09-09 79388/week @ 2019-09-16 80778/week @ 2019-09-23

307,559 downloads per month
Used in 2,230 crates (49 directly)

MIT license

495KB
9K SLoC

tokio-reactor

Event loop that drives Tokio I/O resources.

License

This project is licensed under the MIT license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Tokio by you, shall be licensed as MIT, without any additional terms or conditions.


lib.rs:

Event loop that drives Tokio I/O resources.

The reactor is the engine that drives asynchronous I/O resources (like TCP and UDP sockets). It is backed by mio and acts as a bridge between mio and futures.

The crate provides:

  • Reactor is the main type of this crate. It performs the event loop logic.

  • Handle provides a reference to a reactor instance.

  • Registration and PollEvented allow third parties to implement I/O resources that are driven by the reactor.

Application authors will not use this crate directly. Instead, they will use the tokio crate. Library authors should only depend on tokio-reactor if they are building a custom I/O resource.

For more details, see reactor module documentation in the Tokio crate.

Dependencies

~2MB
~37K SLoC