Property | Type | Description | |
---|---|---|---|
$added | array | cURL handles those have been already dispatched. | |
$deferreds | array | Deferreds. | |
$mh | resource | cURL multi handle. | |
$options | Options. |
Method | Description | |
---|---|---|
__construct ( |
Constructor. | |
add ( resource $ch ) : React\Promise\PromiseInterface | Call curl_multi_add_handle() or push into queue. | |
consume ( ) | Poll completed cURL entries, consume cURL queue and resolve them. | |
isEmpty ( ) : boolean | Are there no cURL handles? |
Method | Description | |
---|---|---|
interruptConsume ( ) | Do somthing with consumed handle. | |
readCompletedEntries ( ) : array | Poll completed cURL entries. | |
resolveEntries ( array $entries ) | Resolve polled cURLs. |
abstract public __construct ( |
||
$options | ||
$mh | resource | curl_multi |
abstract public add ( resource $ch ) : React\Promise\PromiseInterface | ||
$ch | resource | |
return | React\Promise\PromiseInterface |
public consume ( ) |
abstract protected interruptConsume ( ) |
protected readCompletedEntries ( ) : array | ||
return | array |
protected resolveEntries ( array $entries ) | ||
$entries | array | Polled cURL entries. |
protected array $added | ||
return | array |