2

If I was to do something like:

def do_operation(operation, results):
    results[operation.unique_name] = operation.get_result()

results = {}
for operation in operations:
    thread.Thread(target=do_operation, args=(operation, results)).run()

Would that be a safe operation for the dictionary?

rpecka
  • 1,168
  • 5
  • 17

0 Answers0