Jáchym Toušek

Results 257 comments of Jáchym Toušek

What do you mean by "But I can't get it to work." ? What is it doing?

One of the problems I can see is that `$process->start();` also returns a Promise which you don't yield. I recommend you to not use the wait function but instead use...

Also @kelunik already advised you in https://github.com/amphp/parallel/issues/111 to use amphp/process instead of amphp/parallel. Have you tried that?

amphp/process is to call anything at all... in fact amphp/parallel is built on top of amphp/process.

Now you're not yielding the promises from send method. Also you can't call send before yielding the promise from start. What didn't you understand about "don't use wait"?

Ok. Tomorrow. I need to sleep now.

```php function runProcess($value) { return call( function () { $process = new Process(__DIR__ . "/amp-runner.php"); yield $process->start(); yield $process->send($x); } ) } Loop::run( function () { $promises = []; for($x...

I tried to wrap the `yield enqueue($task);` call in a loop, catching the exception and retry on failure. With that I'm getting this: ``` User Warning: Worker in pool crashed...

I tried with both uv and native driver, same result.

The issue disappeared when I removed xdebug. :thinking: