CancelTask<T> class

取消保证执行的是cancelCallback 并且是同步执行取消调用 不保证取消task任务

Constructors

CancelTask({CompleteCallback? completeCallback, CancelCallback? cancelCallback, required Future<T> task})

Properties

cancelCallback CancelCallback?
getter/setter pair
completeCallback CompleteCallback?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
task Future<T>
getter/setter pair

Methods

cancel() → void
complete() → void
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