|
Hello, Is it possible to get timeout value in EvDriver that would be the equivalent of StreamSelectDriver::getTimeout? Thanks, |
Answered by
trowski
Feb 15, 2025
Replies: 1 comment 1 reply
|
Not in a simple way, no. There's not a good solution to poll mysql connections within the event loop because ext-mysqli doesn't expose a socket which can be polled like, for example, ext-pgsql. The best solution is likely a short repeating timer which calls Instead though I'd recommend you check out |
1 reply
Answer selected by
wtsergo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not in a simple way, no.
There's not a good solution to poll mysql connections within the event loop because ext-mysqli doesn't expose a socket which can be polled like, for example, ext-pgsql.
The best solution is likely a short repeating timer which calls
mysqli::poll()with either a very short or zero timeout.Instead though I'd recommend you check out
amphp/mysql, which has IMO a better interface than ext-mysqli and has full async support.