Return an iterator equivalent to stdlib map.
Each function will receive its own copy of the context from the parent thread.
map( self, fn: Callable[..., T], *iterables: Iterable[Any] = (), timeout: Optional[float] = None, chunksize: int = 1 ) -> Iterator[T]| Name | Type | Description |
|---|---|---|
fn* | Callable[..., T] | A callable that will take as many arguments as there are passed iterables. |
timeout | Optional[float] | Default: NoneThe maximum number of seconds to wait. If None, then there is no limit on the wait time. |
chunksize | int | Default: 1The size of the chunks the iterable will be broken into before being passed to a child process. This argument is only used by ProcessPoolExecutor; it is ignored by ThreadPoolExecutor. |