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.
2 parents 5fe6fc4 + f575588 commit 4808daaCopy full SHA for 4808daa
Doc/library/multiprocessing.rst
@@ -936,8 +936,13 @@ For an example of the usage of queues for interprocess communication see
936
937
.. method:: close()
938
939
- Indicate that no more data will be put on this queue by the current
940
- process. The background thread will quit once it has flushed all buffered
+ Close the queue: release internal resources.
+
941
+ A queue must not be used anymore after it is closed. For example,
942
+ :meth:`~Queue.get`, :meth:`~Queue.put` and :meth:`~Queue.empty`
943
+ methods must no longer be called.
944
945
+ The background thread will quit once it has flushed all buffered
946
data to the pipe. This is called automatically when the queue is garbage
947
collected.
948
0 commit comments