The async equivalent to [curl_multi_select](http://php

function curl_multi_await(
  resource $mh,
  float $timeout = 1.0,
): Awaitable<int>;


This function waits until there is activity on a cURL handle within $mh. Once there is activity, you process the result with curl_multi_exec


  • resource $mh - A cURL multi handle returned from curl_multi_init.
  • float $timeout = 1.0 - The time (in seconds) to wait for a response indicating some activity.

Return Values

  • Awaitable<int> - - An Awaitable representing the int result of the activity. If returned int is positive, that represents the number of handles on which there was activity. If 0, that means no activity occurred. If negative, then there was a select failure.