Skip to content

Commit 63c8ea1

Browse files
committed
add getQueueLength and getChildsCount
1 parent 1cdd778 commit 63c8ea1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Pool.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,21 @@ public function hasQueue(): bool
202202
return !empty($this->queue);
203203
}
204204

205+
public function getQueueLength(): int
206+
{
207+
return count($this->queue);
208+
}
209+
205210
public function hasChilds(): bool
206211
{
207212
return !empty($this->childs);
208213
}
209214

215+
public function getChildsCount(): int
216+
{
217+
return count($this->childs);
218+
}
219+
210220
public function waitQueue(): void
211221
{
212222
while($this->hasQueue()){

0 commit comments

Comments
 (0)