Skip to main content

map_prepare()

Stage a map for repeated runs and return a PreparedMap.

Usage

Source

map_prepare(
    fn,
    x,
    *,
    args=(),
    kwargs=None,
    template=None,
    n_chunks=None,
    stream=False,
)

This takes the same arguments as map() except seed, timeout, and collect. Those are per-run options of PreparedMap.run(). See PreparedMap for reuse and shared-memory lifetime.