]> granicus.if.org Git - python/commit
asyncio, Tulip issue 220: Merge JoinableQueue with Queue.
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 17 Feb 2015 21:53:28 +0000 (22:53 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 17 Feb 2015 21:53:28 +0000 (22:53 +0100)
commit4cb814c7e1840b9e4d479cc43e65b6fff451ae90
treeb27eb5e2697f3e606bf7403c33ad33ea94574753
parent4e82fb99a0b5128abefaf433a56ab1fa48b9a848
asyncio, Tulip issue 220: Merge JoinableQueue with Queue.

Merge JoinableQueue with Queue. To more closely match the standard Queue,
asyncio.Queue has "join" and "task_done". JoinableQueue is deleted.

Docstring for Queue.join shouldn't mention threads.

Restore JoinableQueue as a deprecated alias for Queue. To more closely match
the standard Queue, asyncio.Queue has "join" and "task_done".  JoinableQueue
remains as a deprecated alias for Queue to avoid needlessly breaking too much
code that depended on it.

Patch written by A. Jesse Jiryu Davis <jesse@mongodb.com>.
Lib/asyncio/queues.py
Lib/test/test_asyncio/test_queues.py