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

34 lines
1.1 KiB
Java
Raw Normal View History

2021-07-24 02:37:17 +00:00
package i0;
import d0.k;
import d0.l;
import d0.z.d.m;
import kotlinx.coroutines.CancellableContinuation;
2021-07-27 00:35:07 +00:00
import retrofit2.Response;
2021-07-24 02:37:17 +00:00
/* 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;
2021-07-27 00:35:07 +00:00
cancellableContinuation.resumeWith(k.m75constructorimpl(l.createFailure(th)));
2021-07-24 02:37:17 +00:00
}
@Override // i0.f
2021-07-27 00:35:07 +00:00
public void b(d<T> dVar, Response<T> response) {
2021-07-24 02:37:17 +00:00
m.checkParameterIsNotNull(dVar, "call");
2021-07-27 00:35:07 +00:00
m.checkParameterIsNotNull(response, "response");
2021-07-24 02:37:17 +00:00
CancellableContinuation cancellableContinuation = this.a;
k.a aVar = k.i;
2021-07-27 00:35:07 +00:00
cancellableContinuation.resumeWith(k.m75constructorimpl(response));
2021-07-24 02:37:17 +00:00
}
}