ProgressToken
Functions
getCompletionStage
Link copied to clipboard
Gets the already started CompletionStage which completes with the result.
isCancelled
Link copied to clipboard
Is the progress cancelled or not.
onException
Link copied to clipboard
abstract fun onException(exception: Consumer<Throwable>): ProgressToken<T>
Content copied to clipboard
Adds a new consumer to the progressToken which gets called if the the progress fails with an exception.
onProgress
Link copied to clipboard
Adds a new consumer to the progressToken which gets called each time the progress percentage from 0.0(0%) to 1.0 (100%) changes.