awaitility/src/main/java/org/awaitility/core/ConditionFactory.java
public void untilAtomic(final AtomicBoolean atomic, final Matcher<? super Boolean> matcher) {
        until(new CallableHamcrestCondition<Boolean>(new Callable<Boolean>() {
            public Boolean call() {
                return atomic.get();
            }
        }, matcher, generateConditionSettings()));
    }
public void untilAtomic(final AtomicBoolean atomic, final Matcher<? super Boolean> matcher) {
        until(new CallableHamcrestCondition<Boolean>(new Callable<Boolean>() {
            public Boolean call() {
                return atomic.get();
            }
        }, matcher, generateConditionSettings()));
    }
Await until a Atomic variable has a value matching the specified
{@link org.hamcrest.Matcher}. E.g.
<p>&nbsp;</p>
<pre>
await().untilAtomic(myAtomic, is(greaterThan(2)));
</pre>

@param atomic  the atomic variable
@param matcher the matcher The hamcrest matcher that checks whether the
condition is fulfilled.
@throws org.awaitility.core.ConditionTimeoutException If condition was not fulfilled within the given time period.