package c.f.g;

import android.os.Handler;
import java.util.concurrent.Callable;

/* JADX INFO: compiled from: RequestExecutor.java */
/* JADX INFO: loaded from: classes.dex */
public class p<T> implements Runnable {

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public Callable<T> f1381b;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public c.f.i.a<T> f1382e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public Handler f1383f;

    /* JADX INFO: compiled from: RequestExecutor.java */
    public class a implements Runnable {

        /* JADX INFO: renamed from: b, reason: collision with root package name */
        public final /* synthetic */ c.f.i.a f1384b;

        /* JADX INFO: renamed from: e, reason: collision with root package name */
        public final /* synthetic */ Object f1385e;

        public a(p pVar, c.f.i.a aVar, Object obj) {
            this.f1384b = aVar;
            this.f1385e = obj;
        }

        /* JADX WARN: Multi-variable type inference failed */
        @Override // java.lang.Runnable
        public void run() {
            this.f1384b.accept(this.f1385e);
        }
    }

    public p(Handler handler, Callable<T> callable, c.f.i.a<T> aVar) {
        this.f1381b = callable;
        this.f1382e = aVar;
        this.f1383f = handler;
    }

    @Override // java.lang.Runnable
    public void run() {
        T tCall;
        try {
            tCall = this.f1381b.call();
        } catch (Exception unused) {
            tCall = null;
        }
        this.f1383f.post(new a(this, this.f1382e, tCall));
    }
}
