Add threaded parallel_map

This commit is contained in:
Andras Schmelczer 2022-06-30 17:22:16 +02:00
parent 154cc52fa6
commit 0ff0b49a79
9 changed files with 225 additions and 6 deletions

View file

@ -0,0 +1,8 @@
from typing import Iterable, TypeVar
T = TypeVar("T")
def unchunk(chunks: Iterable[Iterable[T]]) -> Iterable[T]:
for chunk in chunks:
yield from chunk