1
0
mirror of https://github.com/danog/parallel.git synced 2025-01-08 13:49:06 +01:00
parallel/test/Context/Fixtures/sleep-process.php

8 lines
126 B
PHP
Raw Normal View History

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