On 05/18/2017 09:25 PM, Domenic Denicola wrote:
On Thursday, May 18, 2017 at 4:34:37 AM UTC-4, smaug wrote:
FWIW, I just yesterday suggested in #whatwg that the platform should have
something like IdlePromise or AsyncPromise.
And there is the related spec bug
https://github.com/whatwg/html/issues/512#issuecomment-171498578
In my opinion there's no need for a whole new promise subclass, just make
requestIdleCallback() return a promise when there's no argument passed.
That wouldn't really catch my idea. I was hoping to have a whole Promise chain using async or idle scheduling. Running tons of Promises even at rIC
time is still running tons of promises and possibly causing jank.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform