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

4 lines
113 B
TypeScript
Raw Normal View History

export function delay(ms: number): Promise<void> {
2021-03-10 06:39:53 +00:00
return new Promise((resolve) => setTimeout(resolve, ms));
}