Did I find the right examples for you? yes no

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)
Returns a tuple of the queue and unacknowledged the size of the queue.

src/w/i/wishbone-0.4.10/wishbone/test/testwishbonequeue.py   wishbone(Download)
    def test_clear(self):
        queue = WishboneQueue()
        queue.put("test")
        assert queue.size() == 1
 
    def test_empty(self):
        queue = WishboneQueue()
        queue.put("test")
        queue.clear()
        assert queue.size() == 0
    def test_size(self):
        queue = WishboneQueue()
        queue.lock()
        queue.rescue("test")
        assert queue.size() == 1

src/w/i/wishbone-HEAD/wishbone/test/testwishbonequeue.py   wishbone(Download)
    def test_clear(self):
        queue = WishboneQueue()
        queue.put("test")
        assert queue.size() == 1
 
    def test_empty(self):
        queue = WishboneQueue()
        queue.put("test")
        queue.clear()
        assert queue.size() == 0
    def test_size(self):
        queue = WishboneQueue()
        queue.lock()
        queue.rescue("test")
        assert queue.size() == 1