]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #14206: Clarify docs for Queue.join_cancel_thread().
authorRichard Oudkerk <shibturn@gmail.com>
Tue, 2 Jul 2013 11:58:21 +0000 (12:58 +0100)
committerRichard Oudkerk <shibturn@gmail.com>
Tue, 2 Jul 2013 11:58:21 +0000 (12:58 +0100)
Doc/library/multiprocessing.rst

index 0756470c94a2fd8b0a2586e4a43756d5f754ba2f..6e8c3a586e7de97544ebc0a85d29714826523add 100644 (file)
@@ -630,6 +630,13 @@ For an example of the usage of queues for interprocess communication see
       the background thread from being joined automatically when the process
       exits -- see :meth:`join_thread`.
 
+      A better name for this method might be
+      ``allow_exit_without_flush()``.  It is likely to cause enqueued
+      data to lost, and you almost certainly will not need to use it.
+      It is really only there if you need the current process to exit
+      immediately without waiting to flush enqueued data to the
+      underlying pipe, and you don't care about lost data.
+
 
 .. class:: multiprocessing.queues.SimpleQueue()