How to use the parmap.parmap._DummyAsyncResult function in parmap

To help you get started, we’ve selected a few parmap examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github zeehio / parmap / parmap / parmap.py View on Github external
chunksize = chunksize,
                               callback = callback)
        except:
            if close_pool:
                pool.terminate()
            raise
        else:
            if close_pool:
                pool.close()
                result = _ParallelAsyncResult(result, pool)
            else:
                result = _ParallelAsyncResult(result)
    else:
        values = _serial_map_or_starmap(function, iterable, args, kwargs,
                                        False, map_or_starmap)
        result = _DummyAsyncResult(values)
    return result

parmap

map and starmap implementations passing additional arguments and parallelizing if possible

Apache-2.0
Latest version published 1 year ago

Package Health Score

50 / 100
Full package analysis

Similar packages