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
9ad116bc
Commit
9ad116bc
authored
Jan 25, 2014
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document asyncio.QueueFull/Empty.
parent
d6fb2c76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
Doc/library/asyncio-sync.rst
Doc/library/asyncio-sync.rst
+18
-2
No files found.
Doc/library/asyncio-sync.rst
View file @
9ad116bc
...
...
@@ -286,7 +286,7 @@ Queue
Remove and return an item from the queue.
Return an item if one is immediately available, else raise
:exc:`
~queue.
Empty`.
:exc:`
Queue
Empty`.
.. method:: put(item)
...
...
@@ -301,7 +301,7 @@ Queue
Put an item into the queue without blocking.
If no free slot is immediately available, raise :exc:`
~queue.
Full`.
If no free slot is immediately available, raise :exc:`
Queue
Full`.
.. method:: qsize()
...
...
@@ -367,3 +367,19 @@ JoinableQueue
Raises :exc:`ValueError` if called more times than there were items
placed in the queue.
Exceptions
^^^^^^^^^^
.. exception:: QueueEmpty
Exception raised when non-blocking :meth:`~Queue.get` (or
:meth:`~Queue.get_nowait`) is called
on a :class:`Queue` object which is empty.
.. exception:: QueueFull
Exception raised when non-blocking :meth:`~Queue.put` (or
:meth:`~Queue.put_nowait`) is called
on a :class:`Queue` object which is full.
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