dportable 0.1.3

Portable interface for various utilities.
Documentation
1
2
3
4
5
6
7
8
9
10
11
pub use tokio_util::sync::CancellationToken;

/// A Future that is resolved once the corresponding [`CancellationToken`] is cancelled.
pub type Cancelled<'a> = tokio_util::sync::WaitForCancellationFuture<'a>;

/// A Future that is resolved once the corresponding [`CancellationToken`]
/// is cancelled.
///
/// This is the counterpart to [`Cancelled`] that takes
/// [`CancellationToken`] by value instead of using a reference.
pub type CancelledOwned = tokio_util::sync::WaitForCancellationFutureOwned;