You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 20, 2023. It is now read-only.
Add a flag to always bind scheduleRead/Write to execute in the current 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
0 commit comments