PHP 클래스 mpyw\Co\Internal\AbstractScheduler

파일 보기 프로젝트 열기: mpyw/co 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$added array cURL handles those have been already dispatched.
$deferreds array Deferreds.
$mh resource cURL multi handle.
$options CoOption Options.

공개 메소드들

메소드 설명
__construct ( CoOption $options, resource $mh ) 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.

메소드 상세

__construct() 추상적인 공개 메소드

Initialize cURL multi handle.
abstract public __construct ( CoOption $options, resource $mh )
$options CoOption
$mh resource curl_multi

add() 추상적인 공개 메소드

Call curl_multi_add_handle() or push into queue.
abstract public add ( resource $ch ) : React\Promise\PromiseInterface
$ch resource
리턴 React\Promise\PromiseInterface

consume() 공개 메소드

Poll completed cURL entries, consume cURL queue and resolve them.
public consume ( )

interruptConsume() 추상적인 보호된 메소드

Do somthing with consumed handle.
abstract protected interruptConsume ( )

isEmpty() 추상적인 공개 메소드

Are there no cURL handles?
abstract public isEmpty ( ) : boolean
리턴 boolean

readCompletedEntries() 보호된 메소드

Poll completed cURL entries.
protected readCompletedEntries ( ) : array
리턴 array

resolveEntries() 보호된 메소드

Resolve polled cURLs.
protected resolveEntries ( array $entries )
$entries array Polled cURL entries.

프로퍼티 상세

$added 보호되어 있는 프로퍼티

cURL handles those have been already dispatched.
protected array $added
리턴 array

$deferreds 보호되어 있는 프로퍼티

Deferreds.
protected array $deferreds
리턴 array

$mh 보호되어 있는 프로퍼티

cURL multi handle.
protected resource $mh
리턴 resource

$options 보호되어 있는 프로퍼티

Options.
protected CoOption,mpyw\Co\Internal $options
리턴 CoOption