-
|
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. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
|
Or should I call |
Beta Was this translation helpful? Give feedback.
-
|
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 |
Beta Was this translation helpful? Give feedback.
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 :)