1 | import { Chrome, Command } from './types';
|
2 | export default class Queue {
|
3 | private flushCount;
|
4 | private commandQueue;
|
5 | private chrome;
|
6 | private lastWaitAll;
|
7 | constructor(chrome: Chrome);
|
8 | end(): Promise<void>;
|
9 | enqueue(command: Command): void;
|
10 | process<T extends any>(command: Command): Promise<T>;
|
11 | private waitAll();
|
12 | }
|