tuweni / org.apache.tuweni.concurrent / AsyncCompletion / exceptionally

exceptionally

abstract fun exceptionally(consumer: Consumer<in Throwable!>!): AsyncCompletion! (source)

Returns a new completion that, when this result completes exceptionally, completes after executing the supplied function. Otherwise, if this result completes normally, then the returned result also completes normally with the same value.

Parameters

consumer - Consumer<in Throwable!>!: The function to execute.

Return
AsyncCompletion!: A new result.