Module futures_ext::future
source · Expand description
Module extending functionality of [futures::future
] module
Structs
- This is a wrapper around [Receiver] that will return error when the receiver was polled and the result was not ready. This is a very strict way of preventing deadlocks in code when receiver is polled before the sender has send the result
- A handle that can abort the spawned task that it is associated with aborted. The underlying task also gets aborted when there are no more handles referencing it.
- Future combinator that executes the
on_cancel
closure if the inner future is canceled (dropped before completion). - Future combinator that executes the
on_cancel
closure if the inner future is canceled (dropped before completion). - SharedError is a simple, cloneable
anyhow::Error
wrapper. It holds the inner error in anArc<anyhow::Error>
to support Clone.
Traits
- Trait to be implemented by futures that wish to provide additional data when they are canceled.
- A trait implemented by default for all Futures which extends the standard functionality.
- A trait implemented by default for all Futures which extends the standard functionality.
Functions
- Spawns a new task returning an abort handle for it.
Type Aliases
- Type returned by the
try_shared
method provided by theFbFutureExt
trait.