FrameSeparateTaskQueue class
Copyright 2020 ke.com. All rights reserved. @date 5/7/21 11:10 AM @desc Split the frame queue and add tasks to the queue through the ScheduleTask. By default, there is no limit to the size of the queue, so limit the size after setting maxTaskSize.
Reference SchedulerBinding, each task has a priority, there are three categories: Idle Animation Touch. Each frame takes the first task (FIFO) out of the queue and schedules it until the queue is empty. Use the SchedulingStrategy policy to determine whether the task should be executed:
If the policy is successful, the task is executed If the policy fails, a scheduling attempt is made after the next frame is rendered
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxTaskSize ↔ int
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- schedulingStrategy ↔ SchedulingStrategy
-
getter/setter pair
- taskLength → int
-
no setter
Methods
-
handleEventLoopCallback(
) → Future< bool> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resetMaxTaskSize(
) → void -
scheduleTask<
T> (TaskCallback< T> task, Priority priority, ValueGetter<bool> canIgnore, {String? debugLabel, Flow? flow, int? id}) → Future<T> -
shuffleTask(
bool condition(TaskEntry taskEntry)) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → FrameSeparateTaskQueue?
-
no setter