1 | export type RunFunction = () => Promise<unknown>;
|
2 | export interface Queue<Element, Options> {
|
3 | size: number;
|
4 | filter: (options: Partial<Options>) => Element[];
|
5 | dequeue: () => Element | undefined;
|
6 | enqueue: (run: Element, options?: Partial<Options>) => void;
|
7 | }
|