QueuedRequest<T> class

队列中的请求项

Constructors

QueuedRequest({required String id, required Future<T> executor(), RequestPriority priority = RequestPriority.normal, String? tag})

Properties

completer Completer<T>
完成回调
final
createdAt DateTime
创建时间
final
executor Future<T> Function()
请求执行函数
final
hashCode int
The hash code for this object.
no setterinherited
id String
唯一标识
final
isCancelled bool
是否已取消
getter/setter pair
priority RequestPriority
优先级
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tag String?
标签(用于分组管理)
final

Methods

compareTo(QueuedRequest other) int
比较优先级(用于排序)
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