Initial work on new automod

This commit is contained in:
Dragory 2019-08-18 16:40:15 +03:00
parent 1e549ef2a3
commit ae43d890a1
6 changed files with 888 additions and 5 deletions

View file

@ -1,6 +1,8 @@
import { SECONDS } from "./utils";
type QueueFn = (...args: any[]) => Promise<any>;
const DEFAULT_TIMEOUT = 10 * 1000;
const DEFAULT_TIMEOUT = 10 * SECONDS;
export class Queue {
protected running: boolean = false;