MCPcopy Create free account
hub / github.com/angular/angular / getIdleRequestKey

Function getIdleRequestKey

packages/core/src/defer/idle_scheduler.ts:161–167  ·  view source on GitHub ↗

Generates a string that can be used to find identical idle request option objects.

(options?: IdleRequestOptions)

Source from the content-addressed store, hash-verified

159
160/** Generates a string that can be used to find identical idle request option objects. */
161function getIdleRequestKey(options?: IdleRequestOptions): string {
162 if (!options || options.timeout == null) {
163 return '';
164 }
165
166 return `${options.timeout}`;
167}

Callers 2

addMethod · 0.85
scheduleBucketMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected