Package-level declarations

Functions

Link copied to clipboard

Returns a Deferred that is completed or failed by thisListenableFuture.

Link copied to clipboard

Returns a ListenableFuture that is completed or failed by thisDeferred.

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

Awaits completion of thisListenableFuture 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.