Skip to main content

Module shutdown

Module shutdown 

Source
Expand description

Futures for shutdown signal Helper for shutdown signals

Re-exportsΒ§

use futures::FutureExt; πŸ”’
use futures::channel::oneshot; πŸ”’
use futures::future::FusedFuture; πŸ”’
use futures::future::Shared; πŸ”’
use std::pin::Pin; πŸ”’
use std::task::Context; πŸ”’
use std::task::Poll; πŸ”’

StructsΒ§

Shutdown
Future that resolves when the shutdown event has fired
Signal
Shutdown signal that fires either manually or on drop by closing the channel

FunctionsΒ§

signal
Create a channel pair that’s used to propagate shutdown event