asyncio-queue-rotation


Keywords
asyncio, queue, rotation
License
MIT
Install
pip install asyncio-queue-rotation==0.1.0

Documentation

asyncio rotation queue

based on asyncio.Queue

On put( element ) if qsize() >= maxsize
first element popped out and put elements added to back of queue

from asyncio_queue_rotation import RotationQueue

rotation_queue = RotationQueue(10)
await rotation_queue.put(1)