mirror of
https://github.com/DarthKilroy/Spot.git
synced 2025-12-19 18:26:48 +00:00
Initial commit
This commit is contained in:
commit
8ae81f1cc6
24 changed files with 1425 additions and 0 deletions
9
model/timer.js
Normal file
9
model/timer.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
/**
|
||||
* @param {int} milliseconds
|
||||
* @returns {Promise}
|
||||
*/
|
||||
global.sleep = async (milliseconds) => {
|
||||
return new Promise((resolve) => {
|
||||
setTimeout(resolve, milliseconds);
|
||||
});
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue