ListenableFutureExtensionKt
Added in 1.0.0
public final class ListenableFutureExtensionKt
Summary
Public methods |
|
|---|---|
static final @NonNull T |
<T extends Object> awaitWithException(Extension function on ListenableFuture performs |
Public methods
awaitWithException
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
| Throws | |
|---|---|
HealthServicesException |
if remote operation fails |