Code example for BlockingQueue

Methods: peek

0
            throw new TimeoutException();
        } 
    } 
 
    public void assertNoMoreCallbacks() { 
        if (mQueue.peek() != null) {
            throw new IllegalStateException("there was an unexpected callback on the queue");
        } 
    } 
}