pub trait TaskExtensions: Future<Output = Result<(), SteamError>> + Sized {
// Provided method
fn ignoring_cancellation(
self,
token: CancellationToken,
) -> IgnoringCancellation<Self> ⓘ { ... }
}Expand description
Extension methods for futures.
Provided Methods§
Sourcefn ignoring_cancellation(
self,
token: CancellationToken,
) -> IgnoringCancellation<Self> ⓘ
fn ignoring_cancellation( self, token: CancellationToken, ) -> IgnoringCancellation<Self> ⓘ
Awaits this future, ignoring its cancellation error once token is
cancelled. There’s also the free function ignoring_cancellation.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".