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