forked from Shiloh/remnantchat
5 lines
130 B
TypeScript
5 lines
130 B
TypeScript
|
export const sleep = (milliseconds: number): Promise<void> =>
|
||
|
new Promise<void>(res => {
|
||
|
setTimeout(res, milliseconds)
|
||
|
})
|