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

feat(VmTurnZone): VmTurnZone can handle scheduling microtasks. #979

Conversation

mvuksano
Copy link
Contributor

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

@mvuksano mvuksano added cla: yes and removed cla: no labels Apr 29, 2014
if (onScheduleMicrotask != null) {
return onScheduleMicrotask(fn);
}

_asyncQueue.add(() => delegate.run(zone, fn));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line should be a "defaultOnScheduleMicrotask"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

mvuksano added a commit that referenced this pull request 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
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 mvuksano closed this in ecf9b71 Apr 30, 2014
mvuksano added a commit that referenced this pull request 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 pull request 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 pull request 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
Development

Successfully merging this pull request may close these issues.

Scope should be able to handle a zone's microtask
2 participants