MCPcopy
hub / github.com/angular/angular / schedule

Method schedule

packages/service-worker/worker/src/idle.ts:92–104  ·  view source on GitHub ↗
(desc: string, run: () => Promise<void>)

Source from the content-addressed store, hash-verified

90 }
91
92 schedule(desc: string, run: () => Promise<void>): void {
93 this.queue.push({desc, run});
94
95 if (this.emptyResolve === null) {
96 this.empty = new Promise((resolve) => {
97 this.emptyResolve = resolve;
98 });
99 }
100
101 if (this.oldestScheduledAt === null) {
102 this.oldestScheduledAt = this.adapter.time;
103 }
104 }
105
106 get size(): number {
107 return this.queue.length;

Callers 8

logsMethod · 0.45
idle_spec.tsFile · 0.45
handleFetchMethod · 0.45
initializeMethod · 0.45
handleFetchFunction · 0.45
utils_spec.tsFile · 0.45
disconnectMethod · 0.45

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected