Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate microtask queueing once it's implemented #481

Closed
danielcompton opened this issue Aug 3, 2018 · 1 comment
Closed

Investigate microtask queueing once it's implemented #481

danielcompton opened this issue Aug 3, 2018 · 1 comment
Assignees

Comments

@danielcompton
Copy link
Contributor

Microtask Queuing looks like it may be useful for us in the re-frame router loop. However, it is still a long way from implementation.

See also whatwg/html#2789.

@superstructor
Copy link
Contributor

As I understand it, Microtask Queuing was introduced for use cases related to promises and async functions, for code to run after the currently-executing task has run to completion and the JavaScript execution context stack is empty, but without yielding control back to the browser’s event loop. In effect, for scenarios in which control can’t be passed back to the browser’s main event loop, before the scheduled task is actioned.

Re-frame doesn’t need that guarantee. The existing method for scheduling processing of the event queue works well enough. I can’t see a driver for making a change away from the existing method, particularly when nothing is currently wrong and any change might actually introduce subtle new problems.

Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants