SyncSchedulerHost class
Synchronous scheduler host that immediately runs scheduled tasks without time-slicing.
Designed for deterministic SSR and instantaneous execution environments where waiting on event loop turns is undesirable.
BloomScheduler.setHost(const SyncSchedulerHost());
- Implemented types
Constructors
- SyncSchedulerHost()
-
Creates a synchronous 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
runQueuein 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