discord-jadx/app/src/main/java/f0/d.java

69 lines
1.5 KiB
Java
Raw Normal View History

2021-08-03 07:33:18 +00:00
package f0;
2021-10-15 06:18:26 +00:00
import c.d.b.a.a;
import c0.z.d.m;
import java.io.IOException;
/* compiled from: AsyncTimeout.kt */
public final class d implements x {
public final /* synthetic */ b i;
public final /* synthetic */ x j;
2021-08-03 07:33:18 +00:00
2021-10-15 06:18:26 +00:00
public d(b bVar, x xVar) {
this.i = bVar;
this.j = xVar;
}
2021-08-03 07:33:18 +00:00
2021-10-15 06:18:26 +00:00
@Override // f0.x, java.io.Closeable, java.lang.AutoCloseable
public void close() {
b bVar = this.i;
bVar.i();
try {
this.j.close();
if (bVar.j()) {
throw bVar.k(null);
2021-08-03 07:33:18 +00:00
}
2021-10-15 06:18:26 +00:00
} catch (IOException e) {
if (!bVar.j()) {
throw e;
2021-08-03 07:33:18 +00:00
}
2021-10-15 06:18:26 +00:00
throw bVar.k(e);
} finally {
bVar.j();
2021-08-03 07:33:18 +00:00
}
}
2021-10-15 06:18:26 +00:00
@Override // f0.x
public long h0(e eVar, long j) {
m.checkParameterIsNotNull(eVar, "sink");
b bVar = this.i;
bVar.i();
try {
long h02 = this.j.h0(eVar, j);
if (!bVar.j()) {
return h02;
}
throw bVar.k(null);
} catch (IOException e) {
if (!bVar.j()) {
throw e;
}
throw bVar.k(e);
} finally {
bVar.j();
}
2021-08-03 07:33:18 +00:00
}
2021-10-15 06:18:26 +00:00
@Override // f0.x
public y timeout() {
return this.i;
2021-08-03 07:33:18 +00:00
}
2021-10-15 06:18:26 +00:00
@Override // java.lang.Object
2021-08-03 07:33:18 +00:00
public String toString() {
2021-10-15 06:18:26 +00:00
StringBuilder O = a.O("AsyncTimeout.source(");
O.append(this.j);
O.append(')');
return O.toString();
2021-08-03 07:33:18 +00:00
}
}