|
Hello, I have 2 implements, the first one works well but I wonder if it is good to create a new client each time. However, although the latter one use a shared client, it'll get Pool Timeout or some other Errors if we do multiple requests together. |
Answered by
SysuJayce
Apr 18, 2023
Replies: 2 comments 5 replies
|
Or should I call |
0 replies
|
You need to use an async library, such as For trio, it's called a nursery, for asyncio, it's called a TaskGroup or something like that. You need to use one or the other and call |
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks @tomchristie , after testing, I found out that using a shared async client without connection limits is good for me.
As for
trio, I'll give it a shot :)