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 f32e095 commit ff8de16Copy full SHA for ff8de16
Doc/library/multiprocessing.rst
@@ -897,8 +897,13 @@ For an example of the usage of queues for interprocess communication see
897
898
.. method:: close()
899
900
- Indicate that no more data will be put on this queue by the current
901
- process. The background thread will quit once it has flushed all buffered
+ Close the queue: release internal resources.
+
902
+ A queue must not be used anymore after it is closed. For example,
903
+ :meth:`~Queue.get`, :meth:`~Queue.put` and :meth:`~Queue.empty`
904
+ methods must no longer be called.
905
906
+ The background thread will quit once it has flushed all buffered
907
data to the pipe. This is called automatically when the queue is garbage
908
collected.
909
0 commit comments