package androidx.emoji2.text;

import androidx.emoji2.text.d;
import java.util.concurrent.ThreadPoolExecutor;

/* JADX INFO: loaded from: classes.dex */
class h extends d.j {
    public final /* synthetic */ d.j a;
    public final /* synthetic */ ThreadPoolExecutor b;

    public h(d.j jVar, ThreadPoolExecutor threadPoolExecutor) {
        this.a = jVar;
        this.b = threadPoolExecutor;
    }

    @Override // androidx.emoji2.text.d.j
    public final void a(Throwable th) {
        ThreadPoolExecutor threadPoolExecutor = this.b;
        try {
            this.a.a(th);
        } finally {
            threadPoolExecutor.shutdown();
        }
    }

    @Override // androidx.emoji2.text.d.j
    public final void b(n nVar) {
        ThreadPoolExecutor threadPoolExecutor = this.b;
        try {
            this.a.b(nVar);
        } finally {
            threadPoolExecutor.shutdown();
        }
    }
}
