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
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 allexecutionDeferrals
have completed. Ifexec
returns a future, its result is piped through to theonDone
future, otherwise, theonDone
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