Rabbit-R1/android (non root)/java/sources/kotlinx/coroutines/CompletableDeferredImpl.java
2024-05-21 17:08:36 -04:00

53 lines
3.6 KiB
Java

package kotlinx.coroutines;
import androidx.exifinterface.media.ExifInterface;
import io.sentry.SentryEvent;
import kotlin.Metadata;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.intrinsics.IntrinsicsKt;
import kotlin.jvm.internal.Intrinsics;
import kotlinx.coroutines.selects.SelectClause1;
/* compiled from: CompletableDeferred.kt */
@Metadata(d1 = {"\u00000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\t\n\u0002\u0010\u0003\n\u0002\b\u0003\b\u0002\u0018\u0000*\u0004\b\u0000\u0010\u00012\u00020\u00022\b\u0012\u0004\u0012\u0002H\u00010\u0003B\u000f\u0012\b\u0010\u0004\u001a\u0004\u0018\u00010\u0005¢\u0006\u0002\u0010\u0006J\u0011\u0010\u000f\u001a\u00028\u0000H\u0096@ø\u0001\u0000¢\u0006\u0002\u0010\u0010J\u0015\u0010\u0011\u001a\u00020\f2\u0006\u0010\u0012\u001a\u00028\u0000H\u0016¢\u0006\u0002\u0010\u0013J\u0010\u0010\u0014\u001a\u00020\f2\u0006\u0010\u0015\u001a\u00020\u0016H\u0016J\r\u0010\u0017\u001a\u00028\u0000H\u0016¢\u0006\u0002\u0010\u0018R\u001a\u0010\u0007\u001a\b\u0012\u0004\u0012\u00028\u00000\b8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\t\u0010\nR\u0014\u0010\u000b\u001a\u00020\f8PX\u0090\u0004¢\u0006\u0006\u001a\u0004\b\r\u0010\u000e\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0019"}, d2 = {"Lkotlinx/coroutines/CompletableDeferredImpl;", ExifInterface.GPS_DIRECTION_TRUE, "Lkotlinx/coroutines/JobSupport;", "Lkotlinx/coroutines/CompletableDeferred;", "parent", "Lkotlinx/coroutines/Job;", "(Lkotlinx/coroutines/Job;)V", "onAwait", "Lkotlinx/coroutines/selects/SelectClause1;", "getOnAwait", "()Lkotlinx/coroutines/selects/SelectClause1;", "onCancelComplete", "", "getOnCancelComplete$kotlinx_coroutines_core", "()Z", "await", "(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "complete", "value", "(Ljava/lang/Object;)Z", "completeExceptionally", SentryEvent.JsonKeys.EXCEPTION, "", "getCompleted", "()Ljava/lang/Object;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes3.dex */
final class CompletableDeferredImpl<T> extends JobSupport implements CompletableDeferred<T> {
@Override // kotlinx.coroutines.JobSupport
public boolean getOnCancelComplete$kotlinx_coroutines_core() {
return true;
}
public CompletableDeferredImpl(Job job) {
super(true);
initParentJob(job);
}
@Override // kotlinx.coroutines.Deferred
public T getCompleted() {
return (T) getCompletedInternal$kotlinx_coroutines_core();
}
@Override // kotlinx.coroutines.Deferred
public Object await(Continuation<? super T> continuation) {
Object awaitInternal = awaitInternal(continuation);
IntrinsicsKt.getCOROUTINE_SUSPENDED();
return awaitInternal;
}
@Override // kotlinx.coroutines.Deferred
public SelectClause1<T> getOnAwait() {
SelectClause1<T> selectClause1 = (SelectClause1<T>) getOnAwaitInternal();
Intrinsics.checkNotNull(selectClause1, "null cannot be cast to non-null type kotlinx.coroutines.selects.SelectClause1<T of kotlinx.coroutines.CompletableDeferredImpl>");
return selectClause1;
}
@Override // kotlinx.coroutines.CompletableDeferred
public boolean complete(T value) {
return makeCompleting$kotlinx_coroutines_core(value);
}
@Override // kotlinx.coroutines.CompletableDeferred
public boolean completeExceptionally(Throwable exception) {
return makeCompleting$kotlinx_coroutines_core(new CompletedExceptionally(exception, false, 2, null));
}
}