(0.8.0)
parallel\Future::select — Resolution
&$resolving
, array &$resolved
, array &$errored
) : int
Shall wait until the first future value becomes available, removing the resolved value from resolving
&$resolving
, array &$resolved
, array &$errored
, string &$timedout
, int $timeout
) : int
Shall wait until the first future value becomes available or until timeout
is reached,
removing the resolved value from resolving
Note:
If a value resolved it shall be placed in
resolved
, Futures that would throw \parallel\Exception shall be placed inerrored
, and Futures that have timed out shall be placed intimedout
.
resolving
Should contain Futures to be selected
resolved
Shall contain resolved Futures
errored
Shall contain errored Futures
timedout
Shall contain timedout Futures
timeout
Timeout, in microseconds
Shall return the number of resolved, errored, and where used timedout futures.
Shall throw \parallel\Exception if arguments are invalid.