mirror of
https://github.com/danog/parallel.git
synced 2024-12-11 08:39:48 +01:00
12 lines
202 B
PHP
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];
|
||
|
};
|