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

Skip to content

Commit a24d2d8

Browse files
committed
Issue #10673: Document that Process.exitcode can be used to determine timeout
Patch by Tom Clark.
1 parent 8b6b508 commit a24d2d8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Doc/library/multiprocessing.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,9 @@ The :mod:`multiprocessing` package mostly replicates the API of the
496496
If the optional argument *timeout* is ``None`` (the default), the method
497497
blocks until the process whose :meth:`join` method is called terminates.
498498
If *timeout* is a positive number, it blocks at most *timeout* seconds.
499+
Note that the method returns ``None`` if its process terminates or if the
500+
method times out. Check the process's :attr:`exitcode` to determine if
501+
it terminated.
499502

500503
A process can be joined many times.
501504

0 commit comments

Comments
 (0)