Function asTheyComplete

Waits for all the requests to complete, giving each one through the range interface as it completes.

AsTheyCompleteRange asTheyComplete(
  scope AsyncOperationRequest[] requests...
);

This meant to be used in a foreach loop.

The requests array and its contents must remain valid for the lifetime of the returned range. Its contents may be shuffled as the requests complete (the implementation works through an unstable sort+remove).