You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our primary representation of the results of remote execution is the :class:`~.AsyncResult`
410
-
object, based on the object of the same name in the built-in :mod:`multiprocessing.pool`
411
-
module. Our version provides a superset of that interface.
411
+
object, based on the object of the same name in the built-in :py:mod:`multiprocessing.pool`
412
+
module.
413
+
Our version provides a superset of that interface,
414
+
and starting in 6.0 is a subclass of :class:`concurrent.futures.Future`.
412
415
413
-
The basic principle of the AsyncResult is the encapsulation of one or more results not yet completed. Execution methods (including data movement, such as push/pull) will all return
414
-
AsyncResults when `block=False`.
416
+
The basic principle of the AsyncResult is the encapsulation of one or more results not yet completed.
417
+
Execution methods (including data movement, such as push/pull) will all return AsyncResults when `block=False`.
415
418
416
419
The mp.pool.AsyncResult interface
417
420
---------------------------------
418
421
419
-
The basic interface of the AsyncResult is exactly that of the AsyncResult in :mod:`multiprocessing.pool`, and consists of four methods:
422
+
The basic interface of the AsyncResult is exactly that of the AsyncResult in :py:mod:`multiprocessing.pool`, and consists of four methods:
420
423
421
424
.. AsyncResult spec directly from docs.python.org
422
425
423
426
.. class:: AsyncResult
424
427
425
428
The stdlib AsyncResult spec
426
-
429
+
427
430
.. method:: wait([timeout])
428
431
429
432
Wait until the result is available or until *timeout* seconds pass. This
@@ -592,7 +595,7 @@ clear
592
595
593
596
shutdown
594
597
595
-
You can also instruct engines (and the Controller) to terminate from a Client. This
598
+
You can also instruct engines (and the Controller) to terminate from a Client. This
596
599
can be useful when a job is finished, since you can shutdown all the processes with a
597
600
single command.
598
601
@@ -632,15 +635,25 @@ and many parallel execution tools in Python, such as the built-in
632
635
:py:class:`multiprocessing.Pool` object provide implementations of `map`. All View objects
633
636
provide a :meth:`map` method as well, but the load-balanced and direct implementations differ.
634
637
635
-
Views' map methods can be called on any number of sequences, but they can also take the `block`
636
-
and `bound` keyword arguments, just like :meth:`~client.apply`, but *only as keywords*.
638
+
Views' map methods can be called on any number of sequences,
639
+
but they can also take keyword arguments to influence how the work is distributed.
640
+
What keyword arguments are available depends on the view being used.
0 commit comments