w3c / requestidlecallback

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

Address feedback on timeRemaining method. #58

Closed rmcilroy closed 7 years ago

rmcilroy commented 7 years ago

Clarifies the internal layout of IdleDeadline with an internal slot holding the absolute deadline. Clarifies the algorithm in timeRemaining to use this internal slot and use the underlying primitive for performance.now().

Addresses #54, #55 and #56.

igrigorik commented 7 years ago

@annevk can you please take a pass over this?

rmcilroy commented 7 years ago

Thanks for the reviews. Comments addressed, PTAL.

igrigorik commented 7 years ago

Looks great, thanks guys! Merging.