pub trait CancellationToken:
Send
+ Sync
+ Debug {
// Required methods
fn is_cancelled(&self) -> bool;
fn wait_cancellation(&self) -> LocalBoxFuture<'static, ()>;
}
pub trait CancellationToken:
Send
+ Sync
+ Debug {
// Required methods
fn is_cancelled(&self) -> bool;
fn wait_cancellation(&self) -> LocalBoxFuture<'static, ()>;
}