Files
rr3-apk/decompiled/sources/com/facebook/bolts/CancellationToken.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

37 lines
1.4 KiB
Java

package com.facebook.bolts;
import java.util.Arrays;
import java.util.Locale;
import java.util.concurrent.CancellationException;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.StringCompanionObject;
/* loaded from: classes2.dex */
public final class CancellationToken {
private final CancellationTokenSource tokenSource;
public CancellationToken(CancellationTokenSource tokenSource) {
Intrinsics.checkNotNullParameter(tokenSource, "tokenSource");
this.tokenSource = tokenSource;
}
public final boolean isCancellationRequested() {
return this.tokenSource.isCancellationRequested();
}
public final CancellationTokenRegistration register(Runnable runnable) {
return this.tokenSource.register$facebook_bolts_release(runnable);
}
public final void throwIfCancellationRequested() throws CancellationException {
this.tokenSource.throwIfCancellationRequested$facebook_bolts_release();
}
public String toString() {
StringCompanionObject stringCompanionObject = StringCompanionObject.INSTANCE;
String format = String.format(Locale.US, "%s@%s[cancellationRequested=%s]", Arrays.copyOf(new Object[]{CancellationToken.class.getName(), Integer.toHexString(hashCode()), Boolean.toString(this.tokenSource.isCancellationRequested())}, 3));
Intrinsics.checkNotNullExpressionValue(format, "java.lang.String.format(locale, format, *args)");
return format;
}
}