프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$added | array | cURL handles those have been already dispatched. | |
$deferreds | array | Deferreds. | |
$mh | resource | cURL multi handle. | |
$options | Options. |
메소드 | 설명 | |
---|---|---|
__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? |
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | React\Promise\PromiseInterface |
public consume ( ) |
abstract protected interruptConsume ( ) |
protected readCompletedEntries ( ) : array | ||
리턴 | array |
protected resolveEntries ( array $entries ) | ||
$entries | array | Polled cURL entries. |
protected array $added | ||
리턴 | array |