1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-02 09:37:57 +01:00
parallel/test/Context/test-process.php
2017-12-10 16:39:49 -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];
};