Skip to content

Commit 56eaf3f

Browse files
author
Sasha Baltian
committed
Mark kw-only arg in imap/imap_unordered in doc
1 parent 455b748 commit 56eaf3f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/multiprocessing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2536,7 +2536,7 @@ with the :class:`Pool` class.
25362536
Callbacks should complete immediately since otherwise the thread which
25372537
handles the results will get blocked.
25382538

2539-
.. method:: imap(func, iterable[, chunksize[, buffersize]])
2539+
.. method:: imap(func, iterable, chunksize=1, *, buffersize=None)
25402540

25412541
A lazier version of :meth:`.map`.
25422542

@@ -2562,7 +2562,7 @@ with the :class:`Pool` class.
25622562
.. versionchanged:: next
25632563
Added the *buffersize* parameter.
25642564

2565-
.. method:: imap_unordered(func, iterable[, chunksize[, buffersize]])
2565+
.. method:: imap_unordered(func, iterable, chunksize=1, *, buffersize=None)
25662566

25672567
The same as :meth:`imap` except that the ordering of the results from the
25682568
returned iterator should be considered arbitrary. (Only when there is

0 commit comments

Comments
 (0)