15 releases

0.2.0-alpha.1 Aug 8, 2019
0.1.12 Feb 5, 2020
0.1.11 Nov 27, 2019
0.1.9 Mar 2, 2019
0.1.1 Mar 23, 2018

#17 in #registration

Download history 28990/week @ 2023-11-21 32583/week @ 2023-11-28 31507/week @ 2023-12-05 32091/week @ 2023-12-12 22282/week @ 2023-12-19 15534/week @ 2023-12-26 25811/week @ 2024-01-02 31351/week @ 2024-01-09 30861/week @ 2024-01-16 29132/week @ 2024-01-23 30617/week @ 2024-01-30 32438/week @ 2024-02-06 33105/week @ 2024-02-13 39334/week @ 2024-02-20 38527/week @ 2024-02-27 32477/week @ 2024-03-05

148,323 downloads per month
Used in fewer than 29 crates

MIT license

550KB
10K 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

~3MB
~48K SLoC