WorkerPool
WorkerPool copied to clipboard
Parallel Processing WorkerPool for PHP
I tried to use WorkerPool to parallelise some HTTP requests. It seems to work, except for one mysterious bug: when the main/parent PHP process exits, it fails to flush its...
Will be good if we can catch of the worker exceptions. For example: ``` $wp = new WorkerPool(); $wp->onWorkerException(function(\Exception $ex, Worker $worker) { // there we can handle the exception...
``` % php -a Interactive shell php > $x = [100 => 100, 200 => 200, 300 => 300]; php > echo json_encode($x); {"100":100,"200":200,"300":300} php > array_shift($x); php > echo...