src/main/java/com/googlecode/junittoolbox/PollingWait.java
public void until(@Nonnull Callable<Boolean> shouldBeTrue) {
        until(new RunnableAssert(shouldBeTrue.toString()) {
            @Override
            public void run() throws Exception {
                assertTrue(shouldBeTrue.call());
            }
        });
    }
/**
     * Repetitively executes the given <code>Callable&lt;Boolean&gt;</code>
     * until it returns <code>true</code> or until the configured
     * {@link #timeoutAfter timeout} is reached, in which case an
     * {@link AssertionError} will be thrown. Calls {@link Thread#sleep}
     * before each retry using the configured {@link #pollEvery interval}
     * to free the CPU for other threads/processes.
     *
     * @since 2.0
     */
Repetitively executes the given Callable<Boolean>
until it returns true or until the configured
#timeoutAfter timeout is reached, in which case an
AssertionError will be thrown. Calls  Thread#sleep
before each retry using the configured  #pollEvery interval
to free the CPU for other threads/processes.


Repetitively executes the given Callable<Boolean > until it returns true or until the configured #timeoutAfter timeout is reached in which case an AssertionError will be thrown . Calls Thread#sleep before each retry using the configured #pollEvery interval to free the CPU for other threads / processes .
public void until(@Nonnull Callable<Boolean> shouldBeTrue) {
        until(new RunnableAssert(shouldBeTrue.toString()) {
            @Override
            public void run() throws Exception {
                assertTrue(shouldBeTrue.call());
            }
        });
    }
public void until ( @ Nonnull Callable < Boolean > shouldBeTrue ) { until ( new RunnableAssert ( shouldBeTrue . toString ( ) ) { @ Override public void run ( ) throws Exception { assertTrue ( shouldBeTrue . call ( ) ) ; } } ) ; }
Repetitively executes the given <code>Callable&lt;Boolean&gt;</code>
 until it returns <code>true</code> or until the configured
 {@link #timeoutAfter timeout} is reached, in which case an
 {@link AssertionError} will be thrown.
Repetitively executes the given <code > Callable&lt ; Boolean&gt ; < / code > until it returns <code > true< / code > or until the configured { @link #timeoutAfter timeout } is reached in which case an { @link AssertionError } will be thrown .