screenshot-service/src/memory.ts

8 lines
273 B
TypeScript
Raw Normal View History

2022-06-19 13:33:25 +02:00
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 };