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

Function getIdleRequestKey

packages/core/src/defer/idle_scheduler.ts:164–170  ·  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

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

Callers 2

addMethod · 0.85
scheduleBucketMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected