DefaultSchedulerHost class

Default pure-Dart implementation of SchedulerHost using Timer macrotasks.

Safe for Dart VM, Server-Side Rendering (SSR), unit tests, and browser runtimes.

final host = DefaultSchedulerHost();
BloomScheduler.setHost(host);
Implemented types

Constructors

DefaultSchedulerHost()
Creates a default macrotask-based scheduler host.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
isSynchronous bool
Whether this host executes synchronously without deferral or time-slicing (e.g. in fast SSR).
no setteroverride
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
scheduleWork(void runQueue()) → void
Requests the host environment to invoke runQueue in the next event loop turn.
override
toString() String
A string representation of this object.
inherited
yieldToHost() Future<void>
Yields execution to the host event loop, completing when the platform is ready to resume.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited