I have the following function:
def copy_file(source_file, target_dir): pass
Now I would like to use multiprocessing to exe
multiprocessing
From this answer, pathos let's you run your lambda p.map(lambda x: copy_file(x,target_dir), file_list) directly, saving all the workarounds / hacks
p.map(lambda x: copy_file(x,target_dir), file_list)