ListenableFutureExtensionKt

Added in 1.0.0

public final class ListenableFutureExtensionKt


Summary

Public methods

static final @NonNull T
<T extends Object> awaitWithException(
    @NonNull ListenableFuture<@NonNull T> receiver
)

Extension function on ListenableFuture performs ListenableFuture.await operation and if any exception thrown by the asynchronous API, converts android.os.RemoteException into HealthServicesException

Public methods

public static final @NonNull T <T extends Object> awaitWithException(
    @NonNull ListenableFuture<@NonNull T> receiver
)

Extension function on ListenableFuture performs ListenableFuture.await operation and if any exception thrown by the asynchronous API, converts android.os.RemoteException into HealthServicesException