abstract fun accept(consumer: BiConsumer<in T, Throwable!>!): AsyncCompletion!
(source)
Returns a new completion that, when this result completes either normally or exceptionally, completes after executing the supplied function with this result's value and exception as arguments.
Either the value or the exception supplied to the function will be null
.
consumer
- BiConsumer<in T, Throwable!>!: The consumer to execute.
Return
AsyncCompletion!: A completion.