mirror of
https://github.com/danog/parallel.git
synced 2024-11-30 04:39:01 +01:00
Close channels when finished
This commit is contained in:
parent
e80cd2818d
commit
8abb317507
@ -43,6 +43,9 @@ class ChannelTest extends TestCase
|
||||
yield $a->send('hello');
|
||||
$data = (yield $b->receive());
|
||||
$this->assertEquals('hello', $data);
|
||||
|
||||
$a->close();
|
||||
$b->close();
|
||||
})->done();
|
||||
|
||||
Loop\run();
|
||||
|
Loading…
Reference in New Issue
Block a user