Skip to content

Commit feed27e

Browse files
committed
Add getLimit() method
1 parent 7f8ca54 commit feed27e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Worker/DelegatingWorkerPool.php

+5
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ public function getWorker(): Worker
116116
return new PooledWorker($this->selectWorker(), $this->push(...));
117117
}
118118

119+
public function getLimit(): int
120+
{
121+
return $this->limit;
122+
}
123+
119124
public function getWorkerCount(): int
120125
{
121126
return \min($this->limit, $this->pool->getWorkerCount());

0 commit comments

Comments
 (0)