static A waitForVarToBecome(Var v, A wantedValue) ctex { synchronized(v) { while (!eq(wantedValue, v!)) v.wait(); ret v!; } }