Commit 952ec98a authored by Victor Stinner's avatar Victor Stinner

asyncio doc: update also Queue docstrings

parent 4f9b773a
...@@ -111,8 +111,10 @@ class Queue: ...@@ -111,8 +111,10 @@ class Queue:
def put(self, item): def put(self, item):
"""Put an item into the queue. """Put an item into the queue.
If you yield from put(), wait until a free slot is available Put an item into the queue. If the queue is full, wait until a free
before adding item. slot is available before adding item.
This method is a coroutine.
""" """
self._consume_done_getters() self._consume_done_getters()
if self._getters: if self._getters:
...@@ -161,7 +163,9 @@ class Queue: ...@@ -161,7 +163,9 @@ class Queue:
def get(self): def get(self):
"""Remove and return an item from the queue. """Remove and return an item from the queue.
If you yield from get(), wait until a item is available. If queue is empty, wait until an item is available.
This method is a coroutine.
""" """
self._consume_done_putters() self._consume_done_putters()
if self._putters: if self._putters:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment