Skip to content

Commit 2ba619d

Browse files
satraeffigies
authored andcommitted
fix: wait syntax
1 parent 23a17f3 commit 2ba619d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/pipeline/plugins/multiproc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def __init__(self, plugin_args=None):
151151
# Python < 3.7 does not support initialization or contexts
152152
self.pool = ProcessPoolExecutor(max_workers=self.processors)
153153
result_future = self.pool.submit(process_initializer, self._cwd)
154-
wait(result_future, timeout=5)
154+
wait([result_future], timeout=5)
155155

156156
self._stats = None
157157

0 commit comments

Comments
 (0)