0

So I know that you could use grequests create multiple requests and use map to process them at the same time. But how do you create some requests on the fly while some requests sent have not returned a response yet? I don't want to use multiprocessing or multithreading,is there a way to use grequests to realize it?

1 Answer 1

0

Just use the regular requests library for this. A call to res = requests.get(...) is asynchronous anyway, it will not block until you call something like "res.content". Is this what you are looking for?

Sign up to request clarification or add additional context in comments.

1 Comment

I don't think this is correct. I believe request itself is blocking. Python Requests non-blocking? duplicate

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.