Skip to content

Commit 6f427d8

Browse files
committed
Group interface
1 parent 23d754a commit 6f427d8

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/GroupInterface.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php declare(strict_types=1);
2+
3+
namespace WyriHaximus\React\Parallel;
4+
5+
interface GroupInterface
6+
{
7+
public function __toString(): string;
8+
}

src/LowLevelPoolInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
interface LowLevelPoolInterface extends PoolInterface
66
{
7-
public function acquireGroup(): Group;
7+
public function acquireGroup(): GroupInterface;
88

9-
public function releaseGroup(Group $group): void;
9+
public function releaseGroup(GroupInterface $group): void;
1010
}

0 commit comments

Comments
 (0)