Event loop that drives Tokio I/O resources.
Note: This crate is deprecated in tokio 0.2.x and has been moved and refactored into various places in the
tokio::iomodules of the
tokiocrate. The Reactor has also been renamed the "I/O Driver".
The crate provides:
Reactoris the main type of this crate. It performs the event loop logic.
Handleprovides a reference to a reactor instance.
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.
Handle to the reactor running on a background thread.
Ensure that the default reactor is removed from the thread-local context when leaving the scope. This handles cases that involve panicking.
A reference to a reactor.
The core reactor, or event loop.
Associates an I/O resource with the reactor instance that drives it.
Error returned from
Future that resolves when the reactor thread has shutdown.
Return value from the
Set the default reactor for the duration of the closure