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

[Research] zone + microtask #97

Closed
vicb opened this issue May 4, 2015 · 1 comment
Closed

[Research] zone + microtask #97

vicb opened this issue May 4, 2015 · 1 comment

Comments

@vicb
Copy link
Contributor

vicb commented May 4, 2015

The first implementation of zone + microtask (see #82) works as follow:

  • We use a monkey patch of Promise (es6-promise) so that we know when a microtask is scheduled,
  • At the end of a macrotask, we execute pending microtasks (there is a check at then end of run())

That means than zone.js also acts as a scheduler for microtasks.

An other option would be to let JavaScript schedule microtasks. The JS implementation would become more similar to Dart zones.

@vicb
Copy link
Contributor Author

vicb commented May 7, 2015

fixed in the last version of the linked PR (82)

@vicb vicb closed this as completed May 7, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant