4 lines
100 B
JavaScript
4 lines
100 B
JavaScript
|
|
export function timeout(ms = 1000) {
|
||
|
|
return new Promise((_, reject) => setTimeout(reject, ms));
|
||
|
|
}
|