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
When is "Runtime::enableCoroutine();" needed? #4329
Comments
Dear Swoole team, please make this enhancement: Please make an overload of |
In higher versions, when you use |
@sy-records Ok thanks for answering (your answer can be included in DOCs too) the question #2, but could you tell several words bout q1 ? |
If a connection object becomes unusable, the developer needs to call So we keep it and let the developers handle it. You can refer to simple-swoole/db |
Code example looks not quite good for me, |
Ok, I understand, many thanks! |
I had questions about this example from official docs.
A) Is it accepted to initiate RedisPool outside of
run
and use that instance insiderun\go
? for example:Runtime::enableCoroutine();
before runningCoroutine\run
function. Can you tell (or write on that page too), do we always need to execute that command before\run
executions? I thought coroutines were enabled by default.The text was updated successfully, but these errors were encountered: