mirror of
https://github.com/danog/parallel.git
synced 2024-12-02 09:37:57 +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];
|
|
};
|