4 lines
123 B
JavaScript
4 lines
123 B
JavaScript
export async function sleep(timeout) {
|
|
return new Promise( (resolve, reject) => setTimeout(() => resolve(), timeout));
|
|
}
|