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