[MAJOR][FIRSTCOMMIT] Added basic routes, controllers, repos to kanban service (no postgres yet)
This commit is contained in:
24
lib/util/misc.js
Normal file
24
lib/util/misc.js
Normal file
@@ -0,0 +1,24 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Miscellaneous shared functions go here.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getRandomInt = getRandomInt;
|
||||
exports.tick = tick;
|
||||
/**
|
||||
* Get a random number between 1 and 1,000,000,000,000
|
||||
*/
|
||||
function getRandomInt() {
|
||||
return Math.floor(Math.random() * 1000000000000);
|
||||
}
|
||||
/**
|
||||
* Wait for a certain number of milliseconds.
|
||||
*/
|
||||
function tick(milliseconds) {
|
||||
return new Promise((resolve) => {
|
||||
setTimeout(() => {
|
||||
resolve();
|
||||
}, milliseconds);
|
||||
});
|
||||
}
|
||||
//# sourceMappingURL=misc.js.map
|
||||
Reference in New Issue
Block a user