concurrent / org.apache.tuweni.concurrent / CompletableAsyncCompletion

CompletableAsyncCompletion

interface CompletableAsyncCompletion : AsyncCompletion (source)

An AsyncCompletion that can later be completed successfully or with a provided exception.

Functions

complete

Complete this completion.

abstract fun complete(): Boolean

completeExceptionally

Complete this completion with the given exception.

abstract fun completeExceptionally(ex: Throwable!): Boolean