-
-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple event loop #122
Comments
You can't, unless one calls the other in a busy waiting manner. Why do you want two? |
The reason is #121 I want have |
@sm2017 - If you are just looking for an async way to use Postgres - take a look at https://github.com/voryx/PgAsync which is based on react and rxphp. This library is a 100% native PHP implementation. |
The short version is: You can't. The longer version is: You shouldn't. There are a number of work-arounds which basically resolve to polling one loop from the other one as @kelunik suggested or you may spawn/fork multiple processes and use some kind of IPC protocol etc. The linked ticket #121 is a very specific issue with I believe this has been answered, so I'm closing this for now. Please come back with more details if this problem persists and we can reopen this 👍 |
How can I have multiple event loop in a script??Without blocking each other . I want to use
select
andevent
The text was updated successfully, but these errors were encountered: