Struct tokio_reactor::Background
source · pub struct Background { /* private fields */ }
Expand description
Handle to the reactor running on a background thread.
Instances are created by calling Reactor::background
.
Implementations§
source§impl Background
impl Background
sourcepub fn shutdown_on_idle(self) -> Shutdown
pub fn shutdown_on_idle(self) -> Shutdown
Shutdown the reactor on idle.
Returns a future that completes once the reactor thread has shutdown.
sourcepub fn shutdown_now(self) -> Shutdown
pub fn shutdown_now(self) -> Shutdown
Shutdown the reactor immediately
Returns a future that completes once the reactor thread has shutdown.