PHP 클래스 Icicle\Concurrent\Worker\Worker

상속: implements Icicle\Concurrent\Worker\WorkerInterface
파일 보기 프로젝트 열기: icicleio/concurrent 1 사용 예제들

공개 메소드들

메소드 설명
enqueue ( Icicle\Concurrent\Worker\Task $task ) : Generator
isIdle ( ) : boolean Checks if the worker is currently idle.
isRunning ( ) : boolean Checks if the worker is running.
kill ( ) Immediately kills the context.
shutdown ( ) : Generator
start ( ) Starts the context execution.

메소드 상세

enqueue() 공개 메소드

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

isIdle() 공개 메소드

Checks if the worker is currently idle.
public isIdle ( ) : boolean
리턴 boolean

isRunning() 공개 메소드

Checks if the worker is running.
public isRunning ( ) : boolean
리턴 boolean True if the worker is running, otherwise false.

kill() 공개 메소드

Immediately kills the context.
public kill ( )

shutdown() 공개 메소드

public shutdown ( ) : Generator
리턴 Generator

start() 공개 메소드

Starts the context execution.
public start ( )