PHP 클래스 Icicle\Concurrent\Worker\Internal\PooledWorker

상속: implements Icicle\Concurrent\Worker\Worker
파일 보기 프로젝트 열기: icicleio/concurrent

공개 메소드들

메소드 설명
__construct ( Worker $worker, callable $push )
__destruct ( ) Automatically pushes the worker back into the queue.
enqueue ( Icicle\Concurrent\Worker\Task $task ) : Generator
isIdle ( ) : boolean
isRunning ( ) : boolean
kill ( )
shutdown ( ) : Generator
start ( )

메소드 상세

__construct() 공개 메소드

public __construct ( Worker $worker, callable $push )
$worker Icicle\Concurrent\Worker\Worker
$push callable Callable to push the worker back into the queue.

__destruct() 공개 메소드

Automatically pushes the worker back into the queue.
public __destruct ( )

enqueue() 공개 메소드

public enqueue ( Icicle\Concurrent\Worker\Task $task ) : Generator
$task Icicle\Concurrent\Worker\Task
리턴 Generator

isIdle() 공개 메소드

public isIdle ( ) : boolean
리턴 boolean

isRunning() 공개 메소드

public isRunning ( ) : boolean
리턴 boolean

kill() 공개 메소드

public kill ( )

shutdown() 공개 메소드

public shutdown ( ) : Generator
리턴 Generator

start() 공개 메소드

public start ( )