public void waitUntilDone() throws InterruptedException {
        final boolean done = waitUntilDone(Duration.ZERO);
        assert done : "Infinite waitUntilDone timeout should always complete";
    }
Waits until visiting is done. Session timeout implicitly completes
the visitor session, but will set an unsuccessful result code.

@throws InterruptedException If an interrupt signal was received while waiting.
documentapi/src/main/java/com/yahoo/documentapi/VisitorControlHandler.java