How to use the parmap.starmap_async 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 / test_parmap.py View on Github external
def test_starmap_async(self):
        items = [(1, 2), (3, 4), (5, 6)]
        pfalse = parmap.starmap_async(_identity, items, 5, 6, pm_parallel=False)
        ptrue = parmap.starmap_async(_identity, items, 5, 6, pm_parallel=True)
        self.assertEqual(pfalse.get(), ptrue.get())
github zeehio / parmap / test_parmap.py View on Github external
def test_starmap_async(self):
        items = [(1, 2), (3, 4), (5, 6)]
        pfalse = parmap.starmap_async(_identity, items, 5, 6, pm_parallel=False)
        ptrue = parmap.starmap_async(_identity, items, 5, 6, pm_parallel=True)
        self.assertEqual(pfalse.get(), ptrue.get())

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