Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d7d3f37

Browse files
committed
Issue #14206: Clarify docs for Queue.join_cancel_thread().
1 parent b3c4b98 commit d7d3f37

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Doc/library/multiprocessing.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,13 @@ For an example of the usage of queues for interprocess communication see
659659
the background thread from being joined automatically when the process
660660
exits -- see :meth:`join_thread`.
661661

662+
A better name for this method might be
663+
``allow_exit_without_flush()``. It is likely to cause enqueued
664+
data to lost, and you almost certainly will not need to use it.
665+
It is really only there if you need the current process to exit
666+
immediately without waiting to flush enqueued data to the
667+
underlying pipe, and you don't care about lost data.
668+
662669

663670
.. class:: SimpleQueue()
664671

0 commit comments

Comments
 (0)