MCPcopy Index your code
hub / github.com/angular/angular / cleanupFn

Function cleanupFn

packages/core/src/defer/idle_scheduler.ts:24–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22export function onIdle(callback: VoidFunction, injector: Injector, options?: IdleRequestOptions) {
23 const scheduler = injector.get(IdleScheduler);
24 const cleanupFn = () => scheduler.remove(callback);
25
26 scheduler.add(callback, options);
27 return cleanupFn;

Callers 3

invokeTriggerCleanupFnsFunction · 0.70
phaseFnFunction · 0.50
constructorMethod · 0.50

Calls 1

removeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…