@Override
    public List<V> poll(int limit) {
        return get(pollAsync(limit));
    }
@Test
    public void testPollLimited() {
        RQueue<Integer> queue = getQueue();
        queue.addAll(Arrays.asList(1, 2, 3, 4, 5, 6, 7));
        List<Integer> elements = queue.poll(3);
        assertThat(elements).containsExactly(1, 2, 3);
        List<Integer> elements2 = queue.poll(10);
        assertThat(elements2).containsExactly(4, 5, 6, 7);
        List<Integer> elements3 = queue.poll(5);
        assertThat(elements3).isEmpty();
    }