pynbody.array.shared.remote_map

Contents

pynbody.array.shared.remote_map#

pynbody.array.shared.remote_map(pool, fn, *iterables)[source]#

Equivalent to pool.map, but turns any shared memory arrays into a reference that can be passed between processes.

The function fn must be wrapped with the shared_array_remote decorator for this to work correctly.