tuweni / org.apache.tuweni.concurrent / CompletableAsyncResult

CompletableAsyncResult

interface CompletableAsyncResult<T : Any!> : AsyncResult<T> (source)

An AsyncResult that can be later completed successfully with a provided value, or completed with an exception.

Functions

complete

Complete this result with the given value.

abstract fun complete(value: T?): Boolean

completeExceptionally

Complete this result with the given exception.

abstract fun completeExceptionally(ex: Throwable!): Boolean