Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 952ec98

Browse files
committed
asyncio doc: update also Queue docstrings
1 parent 4f9b773 commit 952ec98

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

Lib/asyncio/queues.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,10 @@ def full(self):
111111
def put(self, item):
112112
"""Put an item into the queue.
113113
114-
If you yield from put(), wait until a free slot is available
115-
before adding item.
114+
Put an item into the queue. If the queue is full, wait until a free
115+
slot is available before adding item.
116+
117+
This method is a coroutine.
116118
"""
117119
self._consume_done_getters()
118120
if self._getters:
@@ -161,7 +163,9 @@ def put_nowait(self, item):
161163
def get(self):
162164
"""Remove and return an item from the queue.
163165
164-
If you yield from get(), wait until a item is available.
166+
If queue is empty, wait until an item is available.
167+
168+
This method is a coroutine.
165169
"""
166170
self._consume_done_putters()
167171
if self._putters:

0 commit comments

Comments
 (0)