2021-11-08 18:25:28 +00:00
|
|
|
package j0.l.a;
|
2021-06-27 20:44:35 +00:00
|
|
|
|
2022-01-27 00:50:41 +00:00
|
|
|
import b.i.a.f.e.o.f;
|
2021-11-08 18:25:28 +00:00
|
|
|
import j0.l.b.b;
|
2021-06-27 20:44:35 +00:00
|
|
|
import java.util.concurrent.Callable;
|
|
|
|
import rx.Observable;
|
|
|
|
import rx.Subscriber;
|
|
|
|
/* compiled from: OnSubscribeFromCallable */
|
|
|
|
public final class p<T> implements Observable.a<T> {
|
2021-12-17 22:03:14 +00:00
|
|
|
public final Callable<? extends T> j;
|
2021-06-27 20:44:35 +00:00
|
|
|
|
|
|
|
public p(Callable<? extends T> callable) {
|
2021-12-17 22:03:14 +00:00
|
|
|
this.j = callable;
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
2021-11-08 18:25:28 +00:00
|
|
|
/* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: j0.l.b.b */
|
2021-06-27 20:44:35 +00:00
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
|
|
@Override // rx.functions.Action1
|
|
|
|
public void call(Object obj) {
|
|
|
|
Subscriber subscriber = (Subscriber) obj;
|
|
|
|
b bVar = new b(subscriber);
|
|
|
|
subscriber.setProducer(bVar);
|
|
|
|
try {
|
2021-12-17 22:03:14 +00:00
|
|
|
bVar.b(this.j.call());
|
2021-06-27 20:44:35 +00:00
|
|
|
} catch (Throwable th) {
|
2022-01-27 00:50:41 +00:00
|
|
|
f.o1(th);
|
2021-06-27 20:44:35 +00:00
|
|
|
subscriber.onError(th);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|