mirror of
https://github.com/renbaoshuo/UOJ-Luogu-RemoteJudge.git
synced 2024-12-27 20:11:58 +00:00
6 lines
129 B
JavaScript
6 lines
129 B
JavaScript
export default function sleep(timeout) {
|
|
return new Promise(resolve => {
|
|
setTimeout(() => resolve(true), timeout);
|
|
});
|
|
}
|