mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-19 00:00:09 +02:00
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.
13 lines
194 B
Rust
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();
|
|
}
|
|
}
|