tuweni / 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

toFuture

Returns the underlying completable future associated with this instance. Note taking action directly on this future will impact this object.

abstract fun toFuture(): CompletableFuture<Void!>!