8 lines
273 B
TypeScript
8 lines
273 B
TypeScript
|
import queue from "queue";
|
||
|
import { concurrency } from "../config.json";
|
||
|
import ScreenshotRequest from "./request";
|
||
|
const q = queue({ concurrency, autostart: true, results: [] });
|
||
|
const requests: Record<string, ScreenshotRequest | undefined> = {};
|
||
|
|
||
|
export { requests, q };
|