discord-jadx/app/src/main/java/i0/o.java

34 lines
1.1 KiB
Java
Raw Normal View History

2021-08-03 07:33:18 +00:00
package i0;
import d0.k;
import d0.l;
import d0.z.d.m;
import kotlinx.coroutines.CancellableContinuation;
import retrofit2.Response;
/* compiled from: KotlinExtensions.kt */
public final class o implements f<T> {
public final /* synthetic */ CancellableContinuation a;
public o(CancellableContinuation cancellableContinuation) {
this.a = cancellableContinuation;
}
@Override // i0.f
public void a(d<T> dVar, Throwable th) {
m.checkParameterIsNotNull(dVar, "call");
m.checkParameterIsNotNull(th, "t");
CancellableContinuation cancellableContinuation = this.a;
k.a aVar = k.i;
cancellableContinuation.resumeWith(k.m75constructorimpl(l.createFailure(th)));
}
@Override // i0.f
public void b(d<T> dVar, Response<T> response) {
m.checkParameterIsNotNull(dVar, "call");
m.checkParameterIsNotNull(response, "response");
CancellableContinuation cancellableContinuation = this.a;
k.a aVar = k.i;
cancellableContinuation.resumeWith(k.m75constructorimpl(response));
}
}