Skip to content

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

References

default

Renames and re-exports Task


delay

Renames and re-exports task/delay


Delay

Renames and re-exports task/delay

Errors

Task Variants