6 releases

0.2.0-alpha.6 Oct 1, 2019
0.2.0-alpha.5 Sep 19, 2019
0.2.0-alpha.4 Aug 29, 2019
0.0.0 Feb 1, 2018

#2190 in Asynchronous

Download history 429/week @ 2024-03-13 582/week @ 2024-03-20 527/week @ 2024-03-27 537/week @ 2024-04-03 413/week @ 2024-04-10 634/week @ 2024-04-17 609/week @ 2024-04-24 481/week @ 2024-05-01 430/week @ 2024-05-08 491/week @ 2024-05-15 499/week @ 2024-05-22 544/week @ 2024-05-29 417/week @ 2024-06-05 460/week @ 2024-06-12 534/week @ 2024-06-19 522/week @ 2024-06-26

2,024 downloads per month
Used in 4 crates

MIT license

1MB
15K 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-net if they are building a custom I/O resource.

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

Dependencies

~2.4–3.5MB
~57K SLoC