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.
1 parent 28937d3 commit a0f0a22Copy full SHA for a0f0a22
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:`get`, :meth:`put` and :meth:`empty` methods must no longer be
943
+ 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