waitUntilTrue

inline fun AtomicBoolean.waitUntilTrue()