Package-level declarations

Functions

Link copied to clipboard

Returns a Deferred that is completed or failed by this ListenableFuture.

Link copied to clipboard

Returns a ListenableFuture that is completed or failed by this Deferred.

Link copied to clipboard
suspend fun <T> ListenableFuture<T>.await(): T

Awaits completion of this ListenableFuture without blocking a thread.

Link copied to clipboard
fun <T> CoroutineScope.future(context: CoroutineContext = EmptyCoroutineContext, start: CoroutineStart = CoroutineStart.DEFAULT, block: suspend CoroutineScope.() -> T): ListenableFuture<T>

Starts block in a new coroutine and returns a ListenableFuture pointing to its result.