next-app/app/lib/delay.ts

5 lines
127 B
TypeScript
Raw Normal View History

const wait = (time: number): Promise<void> => {
return new Promise( res => setTimeout( res, time ) );
}
export default wait;