Pool.submit_batch()
Submit one task per zero-arg callable in fns in one
Usage
Pool.submit_batch(
fns,
*,
timeout=None,
)crossing.
Parameters
fns: _Iterable[_Callable[[], _Any]]-
Zero-arg callables, one task each. Use
functools.partialto bind arguments. timeout: float | None = None- Seconds to wait for injection-ring space; None waits indefinitely.
Returns
A list ofTaskhandles. Ring-full past-
timeoutends the batch short — the returned handles stay valid and collectible. A mid-batch failure raises with anacceptedattribute holding the handles already submitted, which stay valid and collectible.