w3c / requestidlecallback

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

timeRemaining() step 4 should define what it means to have a "time-critical task pending" #87

Closed rniwa closed 2 years ago

rniwa commented 4 years ago

https://w3c.github.io/requestidlecallback/#dom-idledeadline-timeremaining says:

If the user agent now has a time-critical task pending, set timeRemaining to 0.

Like https://github.com/w3c/requestidlecallback/issues/86, this needs to be defined in terms of event loop's task sources 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.