MCPcopy Create free account
hub / github.com/SoCreate/angular-playground / delay

Function delay

projects/cli/src/utils.ts:3–9  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

1import { Browser, ConsoleMessage } from 'puppeteer';
2
3export function delay(ms: number) {
4 return new Promise<void>((resolve, reject) => {
5 setTimeout(() => {
6 resolve();
7 }, ms);
8 });
9}
10
11/**
12 * Creates a Chromium page and navigates to the host url.

Callers 1

waitForNgServeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected