onProgress

abstract fun onProgress(progress: Consumer<Double>): ProgressToken<T>

Adds a new consumer to the progressToken which gets called each time the progress percentage from 0.0(0%) to 1.0 (100%) changes. Is at least called once for 0.0 and once for 1.0.

Return

This instance.

Parameters

progress