1
0
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:
coderstephen 2015-08-28 13:38:16 -05:00
parent e80cd2818d
commit 8abb317507

View File

@ -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();