From: Richard Oudkerk Date: Tue, 2 Jul 2013 11:58:21 +0000 (+0100) Subject: Issue #14206: Clarify docs for Queue.join_cancel_thread(). X-Git-Tag: v2.7.6rc1~314 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4bc130c065fece6f1c32c9a7fa961c182116c912;p=thirdparty%2FPython%2Fcpython.git Issue #14206: Clarify docs for Queue.join_cancel_thread(). --- diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst index 0756470c94a2..6e8c3a586e7d 100644 --- a/Doc/library/multiprocessing.rst +++ b/Doc/library/multiprocessing.rst @@ -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()