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:
parent
551a08bfd0
commit
87f3f1835b
9 changed files with 106 additions and 78 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue