Extensions for com.google.common.util.concurrent.ListenableFuture

asDeferred

fun <T> ListenableFuture<T>.asDeferred(): Deferred<T>

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

await

suspend fun <T> ListenableFuture<T>.await(): T

Awaits completion of this ListenableFuture without blocking a thread.