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
Ascync non-blocking? #82
Comments
You should be able to use |
The problem is not that the callback wasn't being called.. it's that it's blocking on the .send. Am I misunderstanding that it shouldn't block when using the Pool? I would expect it to log something like so:
Instead it blocks and the content is printed out before the |
Hey Jake, This library is blocking calling thread, so it's not as asynchronous as you could think. It's like half-asynchronous, dunno how to call that... |
@RavisMsk Jake isn't using the map function, he's using the send function, which is supposedly asynchronous, unlike map which is only async in that it will block on receiving responses from a group of async requests. |
Any updates on this? I need to send a single request, asynchronously, so as not to block the main thread, and be called back when the request completes. |
I'm getting the same results as Jake. My post request is blocking. |
this library is not actively maintained. |
From the readme: Note: You should probably use requests-threads or requests-futures instead. |
Is it possible to initialize a pool to return the result but continue the code execution like so?
So that would show the request was made but still print the range while the request was in process and then finally print out the results of the send?
I'd really love to use grequests but the examples/documentation are fairly sparse so I'm struggling.
Thanks for any help.
The text was updated successfully, but these errors were encountered: