phasync\Services\CurlMulti final class

Documentation

Provides asynchronous running of curl_handles within phasync. To run the curl handle, use CurlMulti::await($curlHandle) from inside a coroutine.

Properties (4)

private static ?CurlMultiHandle $curlMulti
private static bool $isRunning
private static array $curlHandles

Stores all pending curl multi handles in case of error.

private static array $curlHandleErrors

Stores any exception messages to be thrown when the handle is resumed.

Methods (3)

Documentation missing

Documentation missing

Documentation missing

Source

src/Services/CurlMulti.php:12-116