w3c / requestidlecallback

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

The timeRemaining language is confusing #77

Closed szager-chromium closed 5 years ago

szager-chromium commented 5 years ago

This section:

https://w3c.github.io/requestidlecallback/#the-idledeadline-interface

... says:

"When the timeRemaining() method is invoked on an IdleDeadline object it MUST return the duration, as a DOMHighResTimeStamp, between the current time and the time associated with the IdleDeadline object."

It then goes on to describe a different algorithm for computing the return value of timeRemaining. I think the above-quoted line is misleading and should be removed.

yoavweiss commented 5 years ago

Closed by #79