tokio-reactor

Event loop that drives Tokio I/O resources

7 releases

0.1.5 Aug 27, 2018
0.1.4 Aug 24, 2018
0.1.2 Jun 13, 2018
0.1.1 Mar 23, 2018
0.0.0 Feb 1, 2018

#1 in Asynchronous

Download history 13628/week @ 2018-06-04 16577/week @ 2018-06-11 19177/week @ 2018-06-18 19429/week @ 2018-06-25 17085/week @ 2018-07-02 16487/week @ 2018-07-09 18690/week @ 2018-07-16 17765/week @ 2018-07-23 16176/week @ 2018-07-30 18355/week @ 2018-08-06 22030/week @ 2018-08-13 18022/week @ 2018-08-20 21458/week @ 2018-08-27

78,283 downloads per month
Used in 1,331 crates (33 directly)

MIT license

243KB
4K SLoC

tokio-reactor

Event loop that drives Tokio I/O resources.

Documentation

Overview

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.

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.

Dependencies

~3MB
~47K SLoC