[New-bugs-announce] [issue28777] asinc iter queue

Georgy report at bugs.python.org
Tue Nov 22 23:58:52 EST 2016


New submission from Georgy:

adding to asyncio.Queue class following methods:
    def __aiter__(self): return self
    async def __anext__(self): return await self.get()
let use asyncio.Queue follow:
    queue = asyncio.Queue()
    ...
    async for item in queue: do_something_with(item)

----------
components: asyncio
messages: 281536
nosy: RekGRpth, gvanrossum, yselivanov
priority: normal
severity: normal
status: open
title: asinc iter queue
type: enhancement
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28777>
_______________________________________


More information about the New-bugs-announce mailing list