w3c / requestidlecallback

Cooperative Scheduling of Background Tasks
https://w3c.github.io/requestidlecallback/
Other
50 stars 19 forks source link

6.2. invoke idle callbacks algorithm step 1 should be defined in terms of task sources having tasks enqueued #86

Closed rniwa closed 2 years ago

rniwa commented 4 years ago

https://w3c.github.io/requestidlecallback/#invoke-idle-callbacks-algorithm says

If the user-agent believes it should end the idle period early due to newly scheduled high-priority work, skip to step 4.

This should be defined in terms of any of the task sources in the HTML5 event loop having a task enqueued.

noamr commented 2 years ago

I think this is solved by https://github.com/w3c/requestidlecallback/pull/95 and https://github.com/whatwg/html/pull/7166 once they are merged.

noamr commented 2 years ago

I believe this can be closed now that https://github.com/w3c/requestidlecallback/pull/95 is merged.

yoavweiss commented 2 years ago

@rniwa - Any objections to closing this?

noamr commented 2 years ago

Closing. Feel free to reopen.