Configuration.onEnd()
Description
Registers a function to be called when a pipeline is destroyed.
Syntax
pipy().pipeline().onEnd(() => onPipelineDestroyed()).filterA().filterB()// ...
Parameters
onEnd(handler)
handler
A function that is called every time the pipeline instance is destroyed.
Return Value
The same Configuration object.