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

8 lines
126 B
PHP

<?php
use Amp\Parallel\Sync\Channel;
return function (Channel $channel) use ($argv) {
\sleep((int) ($argv[1] ?? 1));
};