1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-02 17:52:14 +01:00
parallel/test/Context/Fixtures/test-process.php
2019-02-13 18:19:46 -06:00

12 lines
202 B
PHP

<?php
use Amp\Parallel\Sync\Channel;
return function (Channel $channel) use ($argv): string {
if (!isset($argv[1])) {
throw new Error("No string provided");
}
return $argv[1];
};