Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

Scope should be able to handle a zone's microtask #976

Closed
mvuksano opened this issue Apr 29, 2014 · 0 comments
Closed

Scope should be able to handle a zone's microtask #976

mvuksano opened this issue Apr 29, 2014 · 0 comments
Assignees

Comments

@mvuksano
Copy link
Contributor

As an example (mhevery@2675da0) zone should be able to handle microtasks.

zone.onTurnStart = () {
  log('onTurnStart(begin)');
  log('onTurnStart(end)');
};
zone.onTurnDone = () {
  log('onTurnDone(begin)');
  scheduleMicrotask(() { log('executeMicrotask'); });
  log('onTurnDone(end)');
};
zon.onScheduleMicrotask = (microTaskFn) {
  log('onScheduleMicrotask(begin)');
  microTaskFn();
  log('onScheduleMicrotask(end)');
};
zone.run(() {
  log('run');
});

We should get the following sequence:

onTurnStart(begin); onTurnStart(end); run; onTurnDone(begin); onScheduleMicrotask(begin); executeMicrotask; onScheduleMicrotask(end); onTurnDone(end);
@mvuksano mvuksano self-assigned this Apr 29, 2014
mvuksano added a commit to mvuksano/angular.dart that referenced this issue Apr 29, 2014
To customize how VmTurnZone handles microtasks assign a function to
VmTurnZone.onScheduleMicrotask. This method will then be used whenever
a microtask is scheduled instead of the default implementation.

Closes dart-archive#976
mvuksano added a commit to mvuksano/angular.dart that referenced this issue Apr 30, 2014
To customize how VmTurnZone handles microtasks assign a function to
VmTurnZone.onScheduleMicrotask. This method will then be used whenever
a microtask is scheduled instead of the default implementation.

Closes dart-archive#976
mvuksano added a commit to mvuksano/angular.dart that referenced this issue Apr 30, 2014
To customize how VmTurnZone handles microtasks assign a function to
VmTurnZone.onScheduleMicrotask. This method will then be used whenever
a microtask is scheduled instead of the default implementation.

Closes dart-archive#976
mvuksano added a commit to mvuksano/angular.dart that referenced this issue Apr 30, 2014
To customize how VmTurnZone handles microtasks assign a function to
VmTurnZone.onScheduleMicrotask. This method will then be used whenever
a microtask is scheduled instead of the default implementation.

Closes dart-archive#976
mvuksano added a commit to mvuksano/angular.dart that referenced this issue Apr 30, 2014
To customize how VmTurnZone handles microtasks assign a function to
VmTurnZone.onScheduleMicrotask. This method will then be used whenever
a microtask is scheduled instead of the default implementation.

Closes dart-archive#976
mvuksano added a commit to mvuksano/angular.dart that referenced this issue Apr 30, 2014
To customize how VmTurnZone handles microtasks assign a function to
VmTurnZone.onScheduleMicrotask. This method will then be used whenever
a microtask is scheduled instead of the default implementation.

Closes dart-archive#976
mvuksano added a commit that referenced this issue Apr 30, 2014
To customize how VmTurnZone handles microtasks assign a function to
VmTurnZone.onScheduleMicrotask. This method will then be used whenever
a microtask is scheduled instead of the default implementation.

Closes #976

Closes #979
mvuksano added a commit to mvuksano/angular.dart that referenced this issue Apr 30, 2014
To customize how VmTurnZone handles microtasks assign a function to
VmTurnZone.onScheduleMicrotask. This method will then be used whenever
a microtask is scheduled instead of the default implementation.

Closes dart-archive#976
mvuksano added a commit that referenced this issue Apr 30, 2014
To customize how VmTurnZone handles microtasks assign a function to
VmTurnZone.onScheduleMicrotask. This method will then be used whenever
a microtask is scheduled instead of the default implementation.

Closes #976

Closes #979
dsalsbury pushed a commit to dsalsbury/angular.dart that referenced this issue Jul 16, 2014
To customize how VmTurnZone handles microtasks assign a function to
VmTurnZone.onScheduleMicrotask. This method will then be used whenever
a microtask is scheduled instead of the default implementation.

Closes dart-archive#976

Closes dart-archive#979
dsalsbury pushed a commit to dsalsbury/angular.dart that referenced this issue Jul 16, 2014
To customize how VmTurnZone handles microtasks assign a function to
VmTurnZone.onScheduleMicrotask. This method will then be used whenever
a microtask is scheduled instead of the default implementation.

Closes dart-archive#976

Closes dart-archive#979
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant