onTurnDone property

Stream get onTurnDone

A synchronous stream that fires when the VM turn is finished, which means when the inner (managed) zone has completed it's private microtask queue.

Note:

  • This won't wait for microtasks schedules in outer zones.
  • Causing any turn action, e.g., spawning a Future, within this zone will cause an infinite loop.

Implementation

Stream get onTurnDone;