Skip to content

Commit

Permalink
Document
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVanderbist committed Aug 25, 2023
1 parent b4a0312 commit a733f6e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Pool.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ public function add($process, ?int $outputLength = null): Runnable
return $process;
}

/**
* @param callable|null $intermediateCallback Will be called every loop we wait for processes to finish. Return `false` to stop execution of the queue.
* @return array
*/
public function wait(?callable $intermediateCallback = null): array
{
while ($this->inProgress) {
Expand Down

0 comments on commit a733f6e

Please sign in to comment.