]> granicus.if.org Git - python/commitdiff
Issue #14206: Clarify docs for Queue.join_cancel_thread().
authorRichard Oudkerk <shibturn@gmail.com>
Tue, 2 Jul 2013 11:59:55 +0000 (12:59 +0100)
committerRichard Oudkerk <shibturn@gmail.com>
Tue, 2 Jul 2013 11:59:55 +0000 (12:59 +0100)
Doc/library/multiprocessing.rst

index c591cd0710534ee7f6485a0f4fad09c152c42162..03be9284cf4c54394a69d7cd00284d2da12ac0c1 100644 (file)
@@ -659,6 +659,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:: SimpleQueue()