fuzzyworld

dao-game / react-multiplayer / files / src / utils / delay.ts

Branch react-multiplayer · default branch · all branches

delay.ts

Blame: the commit that last changed each line · file · history

38c7e27c 2022-03-22 Pavel Safronov1export async function delay(delayInMs: number) {
2 return new Promise((resolve) => {
3 setTimeout(() => {
4 resolve(2);
5 }, delayInMs);
6 });
7}