1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-28 15:27:43 +00:00

4.0.0-rc13.5

* Fixed: Stream up-time on channels.
* Fixed: More improvements to GraphQL merging logic.
* Fixed: Remove debug logging.
This commit is contained in:
SirStendec 2018-10-16 18:04:54 -04:00
parent 551a08bfd0
commit 87f3f1835b
9 changed files with 106 additions and 78 deletions

View file

@ -11,6 +11,18 @@ export function sleep(delay) {
return new Promise(s => setTimeout(s, delay));
}
export function make_enum(...array) {
const out = {};
for(let i=0; i < array.length; i++) {
const word = array[i];
out[word] = i;
out[i] = word;
}
return out;
}
export function timeout(promise, delay) {
return new Promise((resolve, reject) => {