w3c / requestidlecallback

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

timeRemaining() is badly defined, deadline argument #55

Closed annevk closed 7 years ago

annevk commented 7 years ago

The deadline argument isn't passed to IdleDeadLine...

plehegar commented 7 years ago

[This one requires some tightening of the algorithms]

swickr commented 7 years ago

I suspect the text "the deadline argument passed to IdleDeadline" should be something like "the deadline in the IdleDeadLine object"

(ref 5.2 Invoke idle callbacks algorithm)

annevk commented 7 years ago

Yeah, usually you have something that says "IdleDeadLine objects have an associated X." And then elsewhere you have "Return idleDeadLineInstance's X."

igrigorik commented 7 years ago

Resolved via https://github.com/w3c/requestidlecallback/pull/58, closing.