PHP Class mpyw\Co\Internal\AutoScheduler

Inheritance: extends AbstractScheduler
Show file Open project: mpyw/co

Public Methods

Method Description
__construct ( CoOption $options, resource $mh ) Constructor.
add ( resource $ch ) : React\Promise\PromiseInterface Call curl_multi_add_handle().
isEmpty ( ) : boolean Are there no cURL handles?

Protected Methods

Method Description
interruptConsume ( ) Do nothing.

Method Details

__construct() public method

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

add() public method

Call curl_multi_add_handle().
public add ( resource $ch ) : React\Promise\PromiseInterface
$ch resource
return React\Promise\PromiseInterface

interruptConsume() protected method

Do nothing.
protected interruptConsume ( )

isEmpty() public method

Are there no cURL handles?
public isEmpty ( ) : boolean
return boolean