#how to process for than one request on the same command at once
1 messages · Page 1 of 1 (latest)
Can you show the code? And the pip list
many people can use the same command at the same time
which library does it use? does it have an async alternative?
if it doesnt have an async alternative, or you dont want to change much of your code (not recommended)
use result = await asyncio.to_thread(blocking_call, args_for_the_func)
uhh?
mind telling what you do?
oh a cli command
and you call the download function in your command callback?
ok im not sure but try doing
await asyncio.to_thread(download, url, id, format) (Note that you dont call download but rather pass the function and its args