Expand description
The strategy used to recover from errors that a task returns.
Variants
Ignore
Propagate
Custom(Box<dyn FnOnce(&Error) -> OnError + Send + Sync>)
Implementations
Creates an error strategy based on the given closure. Convenience wrapper over OnError::Custom
that boxes the closure for you.
Creates an error strategy that runs the given closure and ignores the error.