Task<T> class abstract

The Task interface specifies the result of running a Saga using Fork, SagaMiddleware.run

Implementers

Constructors

Task()

Properties

error → dynamic
Returns task thrown error. null if task is still running
no setter
hashCode int
The hash code for this object.
no setterinherited
isAborted bool
Returns true if the task has been aborted
no setter
isCancelled bool
Returns true if the task has been cancelled
no setter
isRunning bool
Returns true if the task hasn't yet returned or thrown an error
no setter
meta SagaMeta
Tasks meta data. It identifies saga.
getter/setter pair
result → T
Returns task return value. null if task is still running
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancel() → void
Cancels the task (If it is still running)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setContext(Map<String, dynamic> context) → void
Sets the task context. It does not replace context, instead it extends tasks context with provided context.
toFuture() Future<T>
Returns a Future which is either:
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited