forked from Juby210/discord-jadx
34 lines
1.1 KiB
Java
34 lines
1.1 KiB
Java
|
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));
|
||
|
}
|
||
|
}
|