Kind: Class
Methods
| Method | Signature | Returns |
|---|---|---|
splitIntoBatches | splitIntoBatches(mappings: ScreenshotMapping[], batchSize: number) | ScreenshotMapping[][] |
processInBatches | processInBatches(mappings: ScreenshotMapping[], documents: GeneratedDocument[], registry: ScreenshotRegistry, capturer: { captureScreenshots: (mappings: ScreenshotMapping[], progressCallback?: any) => Promise<CaptureResult[]> }, replacer: { replaceInDocuments: (documents: GeneratedDocument[], screenshots: CapturedScreenshot[], registry: ScreenshotRegistry, progressCallback?: any) => { documents: GeneratedDocument[]; results: any[] } }, config: BatchConfig) | Promise<AggregatedResult> |
Where it refuses work
BatchedScreenshotProcessorstops the work with an early return whenmappings.length === 0.BatchedScreenshotProcessorstops the work with an early return whenbatches.length === 0.
When something fails
BatchedScreenshotProcessorhandles failure in 1 place: it logs it and continues in all 1.
Was this page helpful?