Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

androidx.concurrent.futures

Interfaces

Resolver

This interface should be implemented by the object passed into getFuture(Resolver).

Classes

CallbackToFutureAdapter

A utility useful for adapting interfaces that take callbacks into interfaces that return .

Extension functions summary

For com.google.common.util.concurrent.ListenableFuture
suspend T

Awaits completion of this ListenableFuture without blocking a thread.

Extension functions

await

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

Awaits completion of this ListenableFuture without blocking a thread.

This suspend function is cancellable.

If the kotlinx.coroutines.Job of the current coroutine is cancelled or completed while this suspending function is waiting, this function stops waiting for the future and immediately resumes with CancellationException.

This method is intended to be used with one-shot Futures, so on coroutine cancellation, the Future is cancelled as well. If cancelling the given future is undesired, use kotlinx.coroutines.NonCancellable.