mirror of
https://github.com/danog/parallel.git
synced 2024-12-02 09:37:57 +01:00
f2e5224856
Allows scripts to be written for either context.
10 lines
138 B
PHP
10 lines
138 B
PHP
<?php
|
|
|
|
use Amp\Parallel\Sync\Channel;
|
|
|
|
return function (Channel $channel) use ($argv) {
|
|
while (true) {
|
|
\usleep(100);
|
|
}
|
|
};
|