Skip to content

Instantly share code, notes, and snippets.

@TheLoneNut
Created April 29, 2021 15:20
Show Gist options
  • Select an option

  • Save TheLoneNut/22dc387a73871b2e666f36ff996eae83 to your computer and use it in GitHub Desktop.

Select an option

Save TheLoneNut/22dc387a73871b2e666f36ff996eae83 to your computer and use it in GitHub Desktop.
def my_list_processing(l):
return sum(l)
elements = [i for i in range(1000)]
results = []
def reducing(e):
results.append(e)
simpleMultiprocessing(elements, my_list_processing, reducing, verbose=True)
print(results)
result = sum(results)
print(result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment