js-waku/packages/tests/src/delay.ts

4 lines
113 B
TypeScript

export function delay(ms: number): Promise<void> {
return new Promise((resolve) => setTimeout(resolve, ms));
}