Package kotlinx.coroutines.experimental.guava

Extensions for External Classes

com.google.common.util.concurrent.ListenableFuture

kotlinx.coroutines.experimental.Deferred

Functions

future

fun <T> future(
    context: CoroutineContext = DefaultDispatcher,
    start: CoroutineStart = CoroutineStart.DEFAULT,
    parent: Job? = null,
    block: suspend CoroutineScope.() -> T
): ListenableFuture<T>

Starts new coroutine and returns its results an an implementation of ListenableFuture. This coroutine builder uses CommonPool context by default.