41 lines
1.6 KiB
Java
41 lines
1.6 KiB
Java
package androidx.work;
|
|
|
|
import b.i.b.d.a.a;
|
|
import d0.k;
|
|
import d0.l;
|
|
import java.util.concurrent.CancellationException;
|
|
import kotlinx.coroutines.CancellableContinuation;
|
|
/* compiled from: ListenableFuture.kt */
|
|
/* loaded from: classes.dex */
|
|
public final class ListenableFutureKt$await$$inlined$suspendCancellableCoroutine$lambda$1 implements Runnable {
|
|
public final /* synthetic */ CancellableContinuation $cancellableContinuation;
|
|
public final /* synthetic */ a $this_await$inlined;
|
|
|
|
public ListenableFutureKt$await$$inlined$suspendCancellableCoroutine$lambda$1(CancellableContinuation cancellableContinuation, a aVar) {
|
|
this.$cancellableContinuation = cancellableContinuation;
|
|
this.$this_await$inlined = aVar;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
try {
|
|
CancellableContinuation cancellableContinuation = this.$cancellableContinuation;
|
|
V v = this.$this_await$inlined.get();
|
|
k.a aVar = k.j;
|
|
cancellableContinuation.resumeWith(k.m72constructorimpl(v));
|
|
} catch (Throwable th) {
|
|
Throwable cause = th.getCause();
|
|
if (cause == null) {
|
|
cause = th;
|
|
}
|
|
if (th instanceof CancellationException) {
|
|
this.$cancellableContinuation.k(cause);
|
|
return;
|
|
}
|
|
CancellableContinuation cancellableContinuation2 = this.$cancellableContinuation;
|
|
k.a aVar2 = k.j;
|
|
cancellableContinuation2.resumeWith(k.m72constructorimpl(l.createFailure(cause)));
|
|
}
|
|
}
|
|
}
|