requestidlecallback library Null safety

Cooperative Scheduling of Background Tasks

https://w3c.github.io/requestidlecallback/

Classes

IdleDeadline
The interface is used as the data type of the input parameter to idle callbacks established by calling Window.requestIdleCallback(). It offers a method, timeRemaining(), which lets you determine how much longer the user agent estimates it will remain idle and a property, didTimeout, which lets you determine if your callback is executing because its timeout duration expired. [...]
IdleRequestOptions