- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
31 lines
923 B
Java
31 lines
923 B
Java
package androidx.core.util;
|
|
|
|
import java.util.concurrent.atomic.AtomicBoolean;
|
|
import kotlin.Result;
|
|
import kotlin.Unit;
|
|
import kotlin.coroutines.Continuation;
|
|
|
|
/* loaded from: classes.dex */
|
|
final class ContinuationRunnable extends AtomicBoolean implements Runnable {
|
|
private final Continuation continuation;
|
|
|
|
public ContinuationRunnable(Continuation continuation) {
|
|
super(false);
|
|
this.continuation = continuation;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
if (compareAndSet(false, true)) {
|
|
Continuation continuation = this.continuation;
|
|
Result.Companion companion = Result.Companion;
|
|
continuation.resumeWith(Result.m4060constructorimpl(Unit.INSTANCE));
|
|
}
|
|
}
|
|
|
|
@Override // java.util.concurrent.atomic.AtomicBoolean
|
|
public String toString() {
|
|
return "ContinuationRunnable(ran = " + get() + ')';
|
|
}
|
|
}
|