pynbody.util.thread_map

Contents

pynbody.util.thread_map#

pynbody.util.thread_map(func, *args)[source]#

Run func in separate threads, mapping over the arguments in the same way as map(..)

There is no thread pool here: a new thread is created for each function call.