Closed tetsuharuohzeki closed 9 years ago
Seems reasonable. That said, with my 'spec hat' on I'd prefer that we stay consistent with requestAnimationFrame: https://html.spec.whatwg.org/#window. Would you be willing to start a conversation on whatwg first to see if that can be updated?
Hmm, okay, I'll file a new proposal issue which is about requestAnimationFrame
to whatwg/html.
By https://github.com/whatwg/html/pull/97, requestAnimationFrame()
returns unsigned long now in whatwg/html.
Awesome, thanks for the quick turnaround! @rmcilroy any objections?
No objections :+1:
revision: 7a1bbbb6f4ebc2f891cd74023b28add9e2dd7c33
By this spec revision, idle callback identifier is only incremented and not be decremented at all, thus this value will not be a negative value. So I feel unsigned long in WebIDL is more suitable type for the return value of
requestIdleCallback()
.