MCPcopy Index your code
hub / github.com/python/cpython / _get_tasks

Method _get_tasks

Lib/multiprocessing/pool.py:634–640  ·  view source on GitHub ↗
(func, it, size)

Source from the content-addressed store, hash-verified

632
633 @staticmethod
634 def _get_tasks(func, it, size):
635 it = iter(it)
636 while 1:
637 x = tuple(itertools.islice(it, size))
638 if not x:
639 return
640 yield (func, x)
641
642 def __reduce__(self):
643 raise NotImplementedError(

Callers 3

imapMethod · 0.80
imap_unorderedMethod · 0.80
_map_asyncMethod · 0.80

Calls 1

isliceMethod · 0.80

Tested by

no test coverage detected