flush static method
Flushes all pending tasks in the queue until empty.
Primarily used in SSR rendering passes and test assertions.
await BloomScheduler.flush();
Implementation
static Future<void> flush() async {
while (pendingTaskCount > 0) {
_flushQueue();
await Future<void>.delayed(Duration.zero);
}
}