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

Function timeout

packages/private/testing/src/utils.ts:183–187  ·  view source on GitHub ↗
(ms?: number)

Source from the content-addressed store, hash-verified

181 * ```
182 */
183export async function timeout(ms?: number): Promise<void> {
184 return new Promise((resolve) => {
185 setTimeout(resolve, ms);
186 });
187}
188
189/**
190 * Installs Jasmine's fake clock with auto-tick enabled for all tests in the describe block.

Calls 1

setTimeoutFunction · 0.85

Tested by 10

createNavigationHistoryFunction · 0.72
advanceAsyncFunction · 0.72
advanceFunction · 0.72
advanceFunction · 0.72
advanceFunction · 0.72
guardsIntegrationSuiteFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…