Easy-to-use threading library providing all basic features to perform work in background mode (with simulation mode).
Added simulation mode for testing purposes and when pcntl
extension is not available
BackgroundWork::doInBackgroundParallel()
as opposite for doInBackground()
to parallel working.BackgroundWork
.BackgroundWork::doInBackground()
, added worker instance: (Worker $worker, int $payloadI, $payloadData)
.Worker::getCurrentPayload(): int
WorkersPool::getRunningWorkers(): Worker[]
BackgroundWork
class.Change signature of sendPayload() and onPayload() methods (remove array
type-hint in $payload
argument).
checkForFinish()
.First release.