WorkerRunningEvent
in package
FinalYes
Dispatched after the worker processed a message or didn't receive a message at all.
Tags
Table of Contents
Properties
- $isWorkerIdle : bool
- $worker : mixed
Methods
- __construct() : mixed
- getWorker() : Worker
- isWorkerIdle() : bool
- Returns true when no message has been received by the worker.
Properties
$isWorkerIdle
private
bool
$isWorkerIdle
$worker
private
mixed
$worker
Methods
__construct()
public
__construct(Worker $worker, bool $isWorkerIdle) : mixed
Parameters
- $worker : Worker
- $isWorkerIdle : bool
getWorker()
public
getWorker() : Worker
Return values
WorkerisWorkerIdle()
Returns true when no message has been received by the worker.
public
isWorkerIdle() : bool