PHP Class pthreads\PromiseManager

Inheritance: extends Pool
显示文件 Open project: krakjoe/promises Class Usage Examples

Public Methods

Method Description
__construct ( $workers = 4, $class = Worker::class, $ctor = [] )
hasWork ( )
manage ( Promise $promise, Thenable $thenable )

Method Details

__construct() public method

public __construct ( $workers = 4, $class = Worker::class, $ctor = [] )

hasWork() public method

public hasWork ( )

manage() public method

public manage ( Promise $promise, Thenable $thenable )
$promise Promise
$thenable Thenable