- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
30 lines
946 B
Java
30 lines
946 B
Java
package kotlinx.coroutines;
|
|
|
|
import java.util.concurrent.atomic.AtomicIntegerFieldUpdater;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class InvokeOnCancelling extends JobCancellingNode {
|
|
public static final AtomicIntegerFieldUpdater _invoked$FU = AtomicIntegerFieldUpdater.newUpdater(InvokeOnCancelling.class, "_invoked");
|
|
private volatile int _invoked;
|
|
public final Function1 handler;
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public /* bridge */ /* synthetic */ Object invoke(Object obj) {
|
|
invoke((Throwable) obj);
|
|
return Unit.INSTANCE;
|
|
}
|
|
|
|
public InvokeOnCancelling(Function1 function1) {
|
|
this.handler = function1;
|
|
}
|
|
|
|
@Override // kotlinx.coroutines.CompletionHandlerBase
|
|
public void invoke(Throwable th) {
|
|
if (_invoked$FU.compareAndSet(this, 0, 1)) {
|
|
this.handler.invoke(th);
|
|
}
|
|
}
|
|
}
|