Skip to content

Home > @idealeap/pipeline > Pipeline > setOnProgress

Pipeline.setOnProgress() method

Sets a callback to track the pipeline's execution progress.

Signature:

typescript
setOnProgress(callback: (completed: number, total: number) => void): this;
setOnProgress(callback: (completed: number, total: number) => void): this;

Parameters

ParameterTypeDescription
callback(completed: number, total: number) => voidA function that is called with the number of completed pipes and the total number of pipes.

Returns:

this

The updated pipeline instance.

Released under the MIT License.