Fixed bug where dictionary was changed during operation
This commit is contained in:
parent
c276ad456c
commit
c3c0368399
@ -302,7 +302,7 @@ class GenericMultithreadedSimulator:
|
||||
|
||||
futures = []
|
||||
|
||||
for key, params in self._task_params.items():
|
||||
for key, params in list(self._task_params.items()):
|
||||
future = self._executor.submit(self._task_func, params)
|
||||
future.add_done_callback(partial(done_callback, key))
|
||||
futures.append(future)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user