Releases: astoilkov/main-thread-scheduling
Releases · astoilkov/main-thread-scheduling
v0.9.0
This new major release brings 3 new utilities:
afterFrame(callback)— likerequestAnimationFrame()but called after the frame has rendered (not before)queueTask(callback)— likequeueMicroTask()but for TasksDeferred— extendsPromisewithresolve()andreject()methods and astateproperty
v8.0.0
- ✨ never yield in a Web Worker
- ✨ never yield in a testing environment
7.1.0
7.0.0
6.0.0
A library rewrite that introduced some benefits:
- Improved app performance for
user-visibletasks because we always useMessageChannel.postMessage()and this way we ensure scheduled tasks are run at least once per frame. - Improved performance consistency by measuring tasks execution time from the first completed yield and not from the start of the frame.
- More future-proof. The new implementation will allow some new future features be implemented easier.
6.0.0-0
A library rewrite that introduced some benefits:
- Improved app performance for
user-visibletasks because we always useMessageChannel.postMessage()and this way we ensure scheduled tasks are run at least once per frame. - Improved performance consistency by measuring tasks execution time from the first completed yield and not from the start of the frame.
- More future-proof. The new implementation will allow some new future features be implemented easier.