51 lines
1.0 KiB
Java
51 lines
1.0 KiB
Java
|
package o;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public class nNj<TResult> {
|
||
|
public final WQG<TResult> b = new WQG<>();
|
||
|
|
||
|
public final void c(Exception exc) {
|
||
|
WQG<TResult> wqg = this.b;
|
||
|
synchronized (wqg.c) {
|
||
|
if (wqg.d) {
|
||
|
return;
|
||
|
}
|
||
|
wqg.d = true;
|
||
|
wqg.b = exc;
|
||
|
wqg.c.notifyAll();
|
||
|
wqg.a();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public final void b(TResult tresult) {
|
||
|
WQG<TResult> wqg = this.b;
|
||
|
synchronized (wqg.c) {
|
||
|
if (wqg.d) {
|
||
|
return;
|
||
|
}
|
||
|
wqg.d = true;
|
||
|
wqg.a = tresult;
|
||
|
wqg.c.notifyAll();
|
||
|
wqg.a();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public nNj(byte b) {
|
||
|
new Runnable(this) { // from class: o.nNj.2
|
||
|
private nNj c;
|
||
|
|
||
|
@Override // java.lang.Runnable
|
||
|
public final void run() {
|
||
|
this.c.b.f();
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.c = this;
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
|
||
|
public nNj() {
|
||
|
}
|
||
|
}
|