yielding within different loop types
Loop type
for..of
for await..of
Array.reduce
Array.forEach
Yield strategy
scheduler.yield
scheduler.yield (Max FPS)
setTimeout
await-interaction-response
requestIdleCallback
postMessage
Don't yield
Other options
Animate progress
Batch duration (ms)
None
4x
6x
20x
Throttling
Periodic blocking
RUN
000.000
Loop type
Yield strategy
Batching
Throttling
Runs
Slowest interaction
Slowest job
Slowest FPS