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