onResult

abstract fun onResult(result: Consumer<T>): ProgressToken<T>

Adds a new consumer to the progressToken which gets called once the the progress completes.

Return

This instance.

Parameters

result

{@link Consumer}.