w3c / requestidlecallback

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

Allow processing model to make progress #8

Closed lawnsea closed 9 years ago

lawnsea commented 9 years ago

If last_deadline is less than the current time, it will never be the case that the two are equal, since time is monotonically increasing (#7). So, instead wait for the current time to be greater than or equal to last_deadline.

lawnsea commented 9 years ago

Whoops, this actually fixes #7.

rmcilroy commented 9 years ago

lgtm, thanks.