(
self,
func: Callable[[Any], Any],
iterable: Iterable[Any],
chunksize: int | None = None,
)
| 248 | ) |
| 249 | |
| 250 | def map( |
| 251 | self, |
| 252 | func: Callable[[Any], Any], |
| 253 | iterable: Iterable[Any], |
| 254 | chunksize: int | None = None, |
| 255 | ) -> list[Any]: |
| 256 | self._check_running() |
| 257 | _validate_map_chunksize(chunksize) |
| 258 | return list(self._executor.map(func, iterable)) |
| 259 | |
| 260 | def map_async( |
| 261 | self, |