#how to process for than one request on the same command at once

1 messages · Page 1 of 1 (latest)

plucky stream
#

All commands are concurrent by nature iirc

#

Are you using a blocking library in the command callback? Like requests or smth?

fierce bay
#

Can you show the code? And the pip list

plucky stream
#

many people can use the same command at the same time

#

which library does it use? does it have an async alternative?

plucky stream
plucky stream
#

uhh?

#

mind telling what you do?

#

oh a cli command

#

and you call the download function in your command callback?

plucky stream
#

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