PHP Class Icicle\Concurrent\Worker\AbstractWorker

Inheritance: implements Worker
ファイルを表示 Open project: icicleio/concurrent Class Usage Examples

Public Methods

Method Description
__construct ( Icicle\Concurrent\Strand $strand )
enqueue ( Icicle\Concurrent\Worker\Task $task ) : Generator
isIdle ( ) : boolean
isRunning ( ) : boolean
kill ( )
shutdown ( ) : Generator
start ( )

Private Methods

Method Description
cancelPending ( ) Cancels all pending tasks.
send ( Icicle\Concurrent\Worker\Task $task ) : Generator

Method Details

__construct() public method

public __construct ( Icicle\Concurrent\Strand $strand )
$strand Icicle\Concurrent\Strand

enqueue() public method

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

isIdle() public method

public isIdle ( ) : boolean
return boolean

isRunning() public method

public isRunning ( ) : boolean
return boolean

kill() public method

public kill ( )

shutdown() public method

public shutdown ( ) : Generator
return Generator

start() public method

public start ( )