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
| Parameter | Type | Description |
|---|---|---|
| callback | (completed: number, total: number) => void | A function that is called with the number of completed pipes and the total number of pipes. |
Returns:
this
The updated pipeline instance.