IdleService
interface
stable
Service which configures custom 'on idle' behavior for Angular features like @defer.
API
interface IdleService { requestOnIdle(callback: (deadline?: IdleDeadline | undefined) => void): number; cancelOnIdle(id: number): void;}
requestOnIdle
numberSchedule callback to be executed when the current application or browser is considered idle.
@paramcallback
(deadline?: IdleDeadline | undefined) => void@returns
numbercancelOnIdle
voidCancel a previously scheduled callback using the id associated with it.
@paramid
number@returns
voidJump to details