event_queue library
Classes
- EventQueue
- 以队列的形式进行并等待异步任务
- FutureAny
-
TaskEntry<
T> - TaskQueue
- TaskQueueGlobal
- TaskQueueImpl
Mixins
Extensions
-
EventsPush
on FutureOr<
T> Function() -
FutureOrFuture
on FutureOr<
T> -
FutureOrIterable
on FutureOr<
Iterable< T> > -
FutureOrMap
on FutureOr<
Map< K, V> > -
FutureOrNull
on FutureOr<
T> ? - TaskQueueExt on Object
- 从当前对象获取全局的TaskQueue
Properties
-
idleWait
→ Future<
void> -
进入 事件循环 等待事件调度
flutter engine 根据任务类型是否立即执行事件回调
后续的任务会在恰当的时机运行,比如帧渲染优先等
no setter
-
releaseUI
→ Future<
void> -
no setter
- thenAwaitToken → Object
-
final
- tqCanDiscard → bool
-
no setter
- tqIgnore → bool
-
no setter
Typedefs
-
Callback<
S, T> = S Function(T) -
CombineCallback<
S, T> = S Function(S, T) -
EventCallback<
T> = FutureOr< T> Function() -
TaskEntry._run
-
EventRunCallback<
T> = Future< void> Function(TaskEntry<T> task)