MicrotaskMaintenanceScheduler class final
Defers maintenance to a microtask after the current write returns.
The task still runs on the same isolate, so it is cooperative: the event loop is blocked while the segment is built, but the write that crossed the memtable threshold no longer pays for it.
- Implemented types
Constructors
- MicrotaskMaintenanceScheduler()
-
Creates a scheduler.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
schedule(
void task()) → void -
Schedules
taskto run later on the engine's isolate.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited