@wdio/browserstack-service
Version:
WebdriverIO service for better Browserstack integration
19 lines • 713 B
TypeScript
import type { UploadType } from './types.js';
export default class RequestQueueHandler {
private queue;
private readonly callback;
private pollEventBatchInterval?;
static tearDownInvoked: boolean;
static instance: RequestQueueHandler;
private constructor();
static getInstance(callback?: Function): RequestQueueHandler;
add(event: UploadType): void;
shutdown(): Promise<void>;
startEventBatchPolling(): void;
sendBatch(): Promise<void>;
callCallback: (data: UploadType[], kind: string) => Promise<void>;
resetEventBatchPolling(): void;
removeEventBatchPolling(tag: string): void;
shouldProceed(): boolean;
}
//# sourceMappingURL=request-handler.d.ts.map