Let Job.join accept a timeout.
This commit is contained in:
parent
f7250f8157
commit
039ac45e17
1 changed files with 2 additions and 2 deletions
|
@ -414,8 +414,8 @@ class Job:
|
||||||
|
|
||||||
self._done_event.set()
|
self._done_event.set()
|
||||||
|
|
||||||
def join(self):
|
def join(self, timeout=None):
|
||||||
'''
|
'''
|
||||||
Block until this job runs and completes.
|
Block until this job runs and completes.
|
||||||
'''
|
'''
|
||||||
self._done_event.wait()
|
self._done_event.wait(timeout=timeout)
|
||||||
|
|
Loading…
Reference in a new issue