iNilo
iNilo
Some context https://github.com/Ellpeck/ActuallyAdditions/issues/1207 and https://github.com/progwml6/Natura/issues/394
As in, I'm seeking advise how actually achieve this. As for what its doing: ``` PHP Fatal error: Uncaught TypeError: Expected one of the following types: Amp\Promise, React\Promise\PromiseInterface; instance of...
amphp/process seems to be more for commands like dig, ping, not specifically calling php scripts that are blocking, unless I fully misunderstood that.
``` $promises = []; for($x = 0; $x start(); $process->send($x); } $all_replies = Promise\wait(Promise\all($promises)); var_dump($all_replies); ``` errors on ``` PHP Fatal error: Uncaught Amp\Parallel\Context\StatusError: The process has not been started...
🥺 Is there any chance you could guide me with (pseudo) code please? I'm not understanding it at all 🤕 1) for loop 20 times. 2) start the php child,...
Thanks a bunch. I'm understanding it a bit more, This is my `play.php` I've setup to test: ```
Thanks for this @JanMikes & @kelunik It helps me a bit further at understanding the dynamics. I would just love to get to use the frameworks way of sending things...
@kelunik thanks, was stuck for a bit, @JanMikes example used `\Amp\Process\Process` which has no send function, so I swapped it to `Amp\Parallel\Context\Process` which finally got it working like it should....
Whilst slightly offtopic: The second I bump that for loop to 50 times I'm greeted by ``` PHP Fatal error: Uncaught Amp\TimeoutException: Operation timed out in /home/centos/web/public_html/cron/vendor/amphp/amp/lib/functions.php:253 Stack trace: #0...
With xdebug on @kelunik `play.php` ```