idle
Types
function idle(
options?: IdleRequestOptions,
): IObservable<IdleDeadline>
Definition
Creates an Observable that emits when idle time is available.
Diagram
Example
Recurring 'ping'
const subscribe = idle();
const unsubscribe = subscribe(() => {
console.log('ping');
});
Output:
ping
ping
ping
ping
...