[New-bugs-announce] [issue37334] Add a cancel method to asyncio Queues

Martin Teichmann report at bugs.python.org
Wed Jun 19 03:41:48 EDT 2019


New submission from Martin Teichmann <martin.teichmann at gmail.com>:

When working with queues, it is not uncommon that at some point the producer stops producing data for good, or the consumer stops consuming, for example because a network connection broke down or some user simply closed the session.

In this situation it is very useful to simply cancel all the waiting getters and putters. A simple method can do that, Queue.cancel.

----------
components: asyncio
messages: 346023
nosy: Martin.Teichmann, asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: Add a cancel method to asyncio Queues
type: enhancement
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37334>
_______________________________________


More information about the New-bugs-announce mailing list