tuweni / org.apache.tuweni.concurrent / AsyncCompletion / accept

accept

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

Returns a new completion that completes successfully, after executing the given function with this completion's exception (if any).

The exception supplied to the function will be null if this completion completes successfully.

Parameters

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

Return
AsyncCompletion!: A new result.