Home > @rushstack/stream-collator > StreamCollator

StreamCollator class

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

A static class which manages the output of multiple threads.


export declare class StreamCollator 


Constructor Modifiers Description
(constructor)(options)   (BETA) Constructs a new instance of the StreamCollator class


Property Modifiers Type Description
activeTaskName   string (BETA) For diagnostic purposes, returns the CollatedWriter.taskName for the currently active writer, or an empty string if no writer is active.
activeWriter   CollatedWriter | undefined (BETA) Returns the currently active CollatedWriter, or undefined if no writer is active yet.
destination   TerminalWritable (BETA)
terminal   CollatedTerminal (BETA)
writers   ReadonlySet<CollatedWriter> (BETA) The list of writers that have been registered by calling StreamCollator.registerTask(), in the order that they were registered.


Method Modifiers Description
registerTask(taskName)   (BETA) Registers a new task to be collated, and constructs a CollatedWriter object to receive its input.