Trait dprint_core::plugins::CancellationToken
source · [−]pub trait CancellationToken: Send + Sync {
fn is_cancelled(&self) -> bool;
fn wait_cancellation(&self) -> BoxFuture<'static, ()>;
}
pub trait CancellationToken: Send + Sync {
fn is_cancelled(&self) -> bool;
fn wait_cancellation(&self) -> BoxFuture<'static, ()>;
}