mirror of
https://github.com/Doodle3D/Doodle3D-API
synced 2024-07-03 15:41:21 +02:00
8 lines
128 B
JavaScript
8 lines
128 B
JavaScript
|
export function sleep (time) {
|
||
|
return new Promise((resolve, reject) => {
|
||
|
setTimeout(() => {
|
||
|
resolve();
|
||
|
}, time);
|
||
|
});
|
||
|
}
|