Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 20e6894

Browse files
committed
add new method for procTasks
1 parent 11d1063 commit 20e6894

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

‎src/Proc/ProcTasks.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class ProcTasks
8686
private $workerExitFn;
8787

8888
/**
89-
* Hooks on all worker process exited, in parent.
89+
* Hooks on completed, all worker process exited, in parent.
9090
*
9191
* @var callable(): void
9292
*/
@@ -383,6 +383,19 @@ public function onWorkerExit(callable $listener): self
383383
return $this;
384384
}
385385

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+
386399
/**
387400
* On all worker process exited, in parent.
388401
*

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /