void processBuffer() {
            if (buffer.size() > 0) {
                consume();
            }
        }
@return a {@link CountDownLatch} that may be used to wait until {@link #close()} has been called.
core/src/main/java/org/testcontainers/containers/output/FrameConsumerResultCallback.java