Skip to content

Why this function did not work in async mode? #550

Answered by Carsak
Carsak asked this question in Q&A
Discussion options

You must be logged in to vote

thank you @SimonFrings

After of days analyst and searching I figure out 2 problems

  1. 99% of functions in PHP is IO blocking
  2. PHP is one thread language

so, how I solved my issue?
I am creating for each iteration new child process. So it is solved two problems, my code running in in parallel mode, each iteration blocks only own runtime

I uploaded my solution to Github, so everybody can check it
https://github.com/Carsak/php-react/pull/1/files

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Carsak
Comment options

Answer selected by Carsak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants