Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/terminal > TerminalWritable > writeChunk

TerminalWritable.writeChunk() method

Upstream objects call this method to provide inputs to this object.

Signature:

/** @sealed */
writeChunk(chunk: ITerminalChunk): void;

Parameters

ParameterTypeDescription
chunkITerminalChunk

Returns:

void

Remarks

The subclass provides its implementation via the the TerminalWritable.onWriteChunk() method, which is called by writeChunk().

The object that calls writeChunk() must call close() when it is finished; failing to do so may introduce a resource leak, or may prevent some buffered data from being written.