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

Method getNextId

packages/zone.js/lib/zone-spec/fake-async-test.ts:97–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95 constructor() {}
96
97 static getNextId() {
98 const id = patchedTimers!.nativeSetTimeout.call(global, timeoutCallback, 0);
99 patchedTimers!.nativeClearTimeout.call(global, id);
100 if (typeof id === 'number') {
101 return id;
102 }
103 // in NodeJS, we just use a number for fakeAsync, since it will not
104 // conflict with native TimeoutId
105 return Scheduler.nextNodeJSId++;
106 }
107
108 getCurrentTickTime() {
109 return this._currentTickTime;

Callers 2

scheduleFunctionMethod · 0.80
patchFakeAsyncTestFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected