astoilkov
Joined 11 years ago
Karma
382
Submissions
80
Member since
Feb 20
Joined 11 years ago
It works in all browsers and it breaks long tasks. Sometimes it's even more powerful than scheduler.yield().
About the generations, do you imagine a function that accepts a generator function and the user uses yield? Something like:
``` mainThreadScheduling(function *(yieldOrContinue) { yield yieldOrContinue; }) ```
A little thing but a great improvement. I'm now wondering why I did that.
Maker of Nota — https://nota.md
GitHub — https://github.com/astoilkov
Website — https://astoilkov.com
Email – [email protected]