MCPcopy
hub / github.com/angular/angular / requestOnIdle

Method requestOnIdle

packages/core/src/defer/idle_service.ts:46–46  ·  view source on GitHub ↗

* Schedule `callback` to be executed when the current application or browser is considered idle. * * @returns an id which allows the scheduled callback to be cancelled before it executes.

(callback: (deadline?: IdleDeadline) => void, options?: IdleRequestOptions)

Source from the content-addressed store, hash-verified

44 * @returns an id which allows the scheduled callback to be cancelled before it executes.
45 */
46 requestOnIdle(callback: (deadline?: IdleDeadline) => void, options?: IdleRequestOptions): number;
47
48 /**
49 * Cancel a previously scheduled callback using the id associated with it.

Callers 2

onIdleFunction · 0.65
scheduleBucketMethod · 0.65

Implementers 2

CustomIdleServicepackages/core/test/acceptance/defer_sp
RequestIdleCallbackServicepackages/core/src/defer/idle_service.t

Calls

no outgoing calls

Tested by

no test coverage detected