TaskConflictPolicy enum
Defines what happens when a logical task ID already has pending work.
Values
- reject → const TaskConflictPolicy
-
Reject the new submission with TaskConflictException.
- join → const TaskConflictPolicy
-
Return the result of the latest outstanding execution.
- drop → const TaskConflictPolicy
-
Ignore the new submission and complete it with
null. - restart → const TaskConflictPolicy
-
Cooperatively cancel outstanding work and admit the replacement.
- enqueue → const TaskConflictPolicy
-
Run every submission in FIFO order for the same logical task ID.
- coalesceLatest → const TaskConflictPolicy
-
Retain one trailing execution and replace it with the latest submission.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Constants
-
values
→ const List<
TaskConflictPolicy> - A constant List of the values in this enum, in order of their declaration.