Files
tokio/tokio-threadpool/src/shutdown_task.rs
T
Carl Lerche d91c775f36 Remove dead futures2 code. (#538)
The futures 0.2 crate is not intended for widespread usage. Also, the
futures team is exploring the compat shim route.

If futures 0.3 support is added to Tokio 0.1, then a different
integration route will be explored, making the current code unhelpful.
2018-08-09 21:56:53 -07:00

13 lines
194 B
Rust

use futures::task::AtomicTask;
#[derive(Debug)]
pub(crate) struct ShutdownTask {
pub task: AtomicTask,
}
impl ShutdownTask {
pub fn notify(&self) {
self.task.notify();
}
}