CancellationDisposable
struct · ferroui-reactive · v0.5.0
struct CancellationDisposable
A disposable that cancels a cancellation token when it is disposed
(CancellationDisposable).
Members
new
fn new() -> Rc<Self>
A disposable over a new cancellation token.
with_token
fn with_token(token: CancellationToken) -> Rc<Self>
A disposable that cancels token when it is disposed (CancellationDisposable(cts)).
with_source
fn with_source(source: ferroui_system::threading::CancellationTokenSource) -> Rc<Self>
A disposable that cancels source when it is disposed.
Deprecated since 0.5.0. use
with_token, with aCancellationToken::new()in the place of the source
token
fn token(self: &Self) -> CancellationToken
The token that disposing cancels (a clone of it).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyIDisposableICancelable
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.