Метод | Описание | |
---|---|---|
__construct ( |
||
__destruct ( ) | Automatically pushes the worker back into the queue. | |
enqueue ( Icicle\Concurrent\Worker\Task $task ) : Generator | ||
isIdle ( ) : boolean | ||
isRunning ( ) : boolean | ||
kill ( ) | ||
shutdown ( ) : Generator | ||
start ( ) |
public __construct ( |
||
$worker | ||
$push | callable | Callable to push the worker back into the queue. |
public __destruct ( ) |