Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
952ec98a
Commit
952ec98a
authored
Dec 22, 2014
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asyncio doc: update also Queue docstrings
parent
4f9b773a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
Lib/asyncio/queues.py
Lib/asyncio/queues.py
+7
-3
No files found.
Lib/asyncio/queues.py
View file @
952ec98a
...
...
@@ -111,8 +111,10 @@ class Queue:
def
put
(
self
,
item
):
"""Put an item into the queue.
If you yield from put(), wait until a free slot is available
before adding item.
Put an item into the queue. If the queue is full, wait until a free
slot is available before adding item.
This method is a coroutine.
"""
self
.
_consume_done_getters
()
if
self
.
_getters
:
...
...
@@ -161,7 +163,9 @@ class Queue:
def
get
(
self
):
"""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
()
if
self
.
_putters
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment