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(…)

This does not use a thread pool. A new thread is created for each function call.

This routine is used by pynbody.kdtree.