PeerTube/shared/core-utils/common/time.ts

8 lines
127 B
TypeScript

function wait (milliseconds: number) {
return new Promise(resolve => setTimeout(resolve, milliseconds))
}
export {
wait
}