True Myth / task
task
A Task<T, E>
is a type representing an asynchronous operation that may fail, with a successful (“resolved”) value of type T
and an error (“rejected”) value of type E
.
If the Task
is pending, it is Pending
. If it has resolved, it is Resolved(value)
. If it has rejected, it is Rejected(reason)
.
For more, see the guide.
Classes
Interfaces
Type Aliases
Constructors
Variables
Functions
- all
- allSettled
- and
- andThen
- any
- fromResult
- isRetryFailed
- map
- mapRejected
- match
- or
- orElse
- race
- safe
- safelyTry
- safeNullable
- stopRetrying
- timeout
- timer
- toPromise
- tryOr
- tryOrElse
- withRetries
References
default
Renames and re-exports Task
delay
Renames and re-exports task/delay
Delay
Renames and re-exports task/delay