This repository has been archived by the owner on May 20, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a flag to always bind scheduleRead/Write to execute in the curren…
…t Zone. [THIS CL IS A NO-OP: It makes no changes unless you opt-in to a new flag] To opt-in, add the following to your "main()" function: DomService.maintainZoneOnCallbacks = true; This complies with the contract of `dart:async`, which expects all asynchronous code that doesn't use Futures or Streams to either document that it doesn't comply or always re-enter the current zone on execution. This code is basically equivalent to: final currentZone = Zone.current; queue.add(() { currentZone.run(fn); }); The goal is eventually to make this the default, allow users to opt-out, and then remove the flag entirely (no more opt-outs). The scope of changes internally looks quite small based on tests only, but some application behavior could change. PiperOrigin-RevId: 199502477
- Loading branch information