PHP Класс mpyw\Co\Internal\Pool

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( CoOption $options ) Constructor.
addCurl ( resource $ch ) : React\Promise\PromiseInterface Call curl_multi_add_handle() or push into queue.
addDelay ( integer $time ) : React\Promise\PromiseInterface Add delay.
reserveHaltException ( Throwable | RuntimeException $e ) Used for halting loop.
wait ( ) Run curl_multi_exec() loop.

Описание методов

__construct() публичный Метод

Initialize cURL multi handle.
public __construct ( CoOption $options )
$options CoOption

addCurl() публичный Метод

Call curl_multi_add_handle() or push into queue.
public addCurl ( resource $ch ) : React\Promise\PromiseInterface
$ch resource
Результат React\Promise\PromiseInterface

addDelay() публичный Метод

Add delay.
public addDelay ( integer $time ) : React\Promise\PromiseInterface
$time integer
Результат React\Promise\PromiseInterface

reserveHaltException() публичный Метод

Used for halting loop.
public reserveHaltException ( Throwable | RuntimeException $e )
$e Throwable | RuntimeException

wait() публичный Метод

Run curl_multi_exec() loop.
public wait ( )