AsyncActionController<V> class

Controller Class for an AsyncAction. The AsyncController provides a private handle to execute a closure if and only if the action is not cancelled. The AsyncAction implementation defers to the controller for its state, and the sequencing of futures to resolve the execution.

Constructors

AsyncActionController()

Properties

action AsyncAction<V>?
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

execute(dynamic exec(), {dynamic onCancel()?, V? valueOnCancel}) Future<void>
Execute a closure either async or sync. The Executor is only called if all deferred cancels return false and only after all executionDeferrals have completed. If exec returns a future, its result is piped through to the onDone future, otherwise, the onDone future is completed with the result.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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