12 lines
175 B
JavaScript
12 lines
175 B
JavaScript
|
async function delay(ms=100) {
|
||
|
return new Promise(
|
||
|
resolve => {
|
||
|
setTimeout(resolve, ms);
|
||
|
}
|
||
|
);
|
||
|
}
|
||
|
|
||
|
export {
|
||
|
delay as default,
|
||
|
delay
|
||
|
}
|