MCPcopy Index your code
hub / github.com/python/cpython / join

Method join

Lib/multiprocessing/process.py:149–158  ·  view source on GitHub ↗

Wait until child process terminates

(self, timeout=None)

Source from the content-addressed store, hash-verified

147 self._popen.kill()
148
149 def join(self, timeout=None):
150 '''
151 Wait until child process terminates
152 '''
153 self._check_closed()
154 assert self._parent_pid == os.getpid(), 'can only join a child process'
155 assert self._popen is not None, 'can only join a started process'
156 res = self._popen.wait(timeout)
157 if res is not None:
158 _children.discard(self)
159
160 def is_alive(self):
161 '''

Callers 2

__init__Method · 0.45
__repr__Method · 0.45

Calls 3

_check_closedMethod · 0.95
waitMethod · 0.45
discardMethod · 0.45

Tested by

no test coverage detected