- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
31 lines
761 B
Java
31 lines
761 B
Java
package kotlinx.coroutines;
|
|
|
|
import java.util.concurrent.Future;
|
|
import kotlin.Unit;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class CancelFutureOnCancel extends CancelHandler {
|
|
public final Future future;
|
|
|
|
public CancelFutureOnCancel(Future future) {
|
|
this.future = future;
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public /* bridge */ /* synthetic */ Object invoke(Object obj) {
|
|
invoke((Throwable) obj);
|
|
return Unit.INSTANCE;
|
|
}
|
|
|
|
@Override // kotlinx.coroutines.CancelHandlerBase
|
|
public void invoke(Throwable th) {
|
|
if (th != null) {
|
|
this.future.cancel(false);
|
|
}
|
|
}
|
|
|
|
public String toString() {
|
|
return "CancelFutureOnCancel[" + this.future + ']';
|
|
}
|
|
}
|