Open
Description
Feature or enhancement
Adding methods cancel
and cancel_all
(akin to notify
and notify_all
to queue.Queue
to support cancelling a get
(and potentially a put
) operation.
Pitch
Awaiting on get
of an asyncio
can be cancelled. But waiting on the get
of a queue.Queue
cannot be cancelled. A usual pattern is sending None
to the queue, but this is simply a convention.
Previous discussion
https://discuss.python.org/t/queue-queue-adding-cancelling-support/25123