We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f9b773 commit 952ec98Copy full SHA for 952ec98
1 file changed
Lib/asyncio/queues.py
@@ -111,8 +111,10 @@ def full(self):
111
def put(self, item):
112
"""Put an item into the queue.
113
114
- If you yield from put(), wait until a free slot is available
115
- before adding item.
+ Put an item into the queue. If the queue is full, wait until a free
+ slot is available before adding item.
116
+
117
+ This method is a coroutine.
118
"""
119
self._consume_done_getters()
120
if self._getters:
@@ -161,7 +163,9 @@ def put_nowait(self, item):
161
163
def get(self):
162
164
"""Remove and return an item from the queue.
165
- If you yield from get(), wait until a item is available.
166
+ If queue is empty, wait until an item is available.
167
168
169
170
self._consume_done_putters()
171
if self._putters:
0 commit comments