45 lines
1.4 KiB
Java
45 lines
1.4 KiB
Java
package c.f.j.p;
|
|
|
|
import c.f.j.j.c;
|
|
import com.facebook.common.references.CloseableReference;
|
|
import com.facebook.imagepipeline.request.ImageRequest;
|
|
import java.util.concurrent.ScheduledExecutorService;
|
|
import java.util.concurrent.TimeUnit;
|
|
/* compiled from: DelayProducer */
|
|
public class o implements v0<CloseableReference<c>> {
|
|
public final v0<CloseableReference<c>> a;
|
|
public final ScheduledExecutorService b;
|
|
|
|
/* compiled from: DelayProducer */
|
|
public class a implements Runnable {
|
|
public final /* synthetic */ l i;
|
|
public final /* synthetic */ w0 j;
|
|
|
|
public a(l lVar, w0 w0Var) {
|
|
this.i = lVar;
|
|
this.j = w0Var;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
o.this.a.b(this.i, this.j);
|
|
}
|
|
}
|
|
|
|
public o(v0<CloseableReference<c>> v0Var, ScheduledExecutorService scheduledExecutorService) {
|
|
this.a = v0Var;
|
|
this.b = scheduledExecutorService;
|
|
}
|
|
|
|
@Override // c.f.j.p.v0
|
|
public void b(l<CloseableReference<c>> lVar, w0 w0Var) {
|
|
ImageRequest e = w0Var.e();
|
|
ScheduledExecutorService scheduledExecutorService = this.b;
|
|
if (scheduledExecutorService != null) {
|
|
scheduledExecutorService.schedule(new a(lVar, w0Var), (long) e.f2297s, TimeUnit.MILLISECONDS);
|
|
} else {
|
|
this.a.b(lVar, w0Var);
|
|
}
|
|
}
|
|
}
|