1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-02 09:37:57 +01:00
parallel/test/Context/Fixtures/sleep-process.php
Aaron Piotrowski f2e5224856
Unite Process and Parallel context interfaces
Allows scripts to be written for either context.
2019-02-17 23:50:41 -06:00

10 lines
138 B
PHP

<?php
use Amp\Parallel\Sync\Channel;
return function (Channel $channel) use ($argv) {
while (true) {
\usleep(100);
}
};