We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11d1063 commit 20e6894Copy full SHA for 20e6894
src/Proc/ProcTasks.php
@@ -86,7 +86,7 @@ class ProcTasks
86
private $workerExitFn;
87
88
/**
89
- * Hooks on all worker process exited, in parent.
+ * Hooks on completed, all worker process exited, in parent.
90
*
91
* @var callable(): void
92
*/
@@ -383,6 +383,19 @@ public function onWorkerExit(callable $listener): self
383
return $this;
384
}
385
386
+ /**
387
+ * On all worker process exited, in parent.
388
+ *
389
+ * @param callable $listener
390
391
+ * @return $this
392
+ */
393
+ public function onCompleted(callable $listener): self
394
+ {
395
+ $this->workersExitedFn = $listener;
396
+ return $this;
397
+ }
398
+
399
400
* On all worker process exited, in parent.
401
0 commit comments