1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-11 08:39:48 +01:00
parallel/test/Context/Fixtures/test-process.php

12 lines
202 B
PHP
Raw Normal View History

<?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];
};