68 lines
1.5 KiB
Java
68 lines
1.5 KiB
Java
package f0;
|
|
|
|
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;
|
|
|
|
public d(b bVar, x xVar) {
|
|
this.i = bVar;
|
|
this.j = xVar;
|
|
}
|
|
|
|
@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);
|
|
}
|
|
} catch (IOException e) {
|
|
if (!bVar.j()) {
|
|
throw e;
|
|
}
|
|
throw bVar.k(e);
|
|
} finally {
|
|
bVar.j();
|
|
}
|
|
}
|
|
|
|
@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();
|
|
}
|
|
}
|
|
|
|
@Override // f0.x
|
|
public y timeout() {
|
|
return this.i;
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public String toString() {
|
|
StringBuilder O = a.O("AsyncTimeout.source(");
|
|
O.append(this.j);
|
|
O.append(')');
|
|
return O.toString();
|
|
}
|
|
}
|