screenshot-service/src/memory.ts
2022-06-19 13:33:25 +02:00

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 };