#Asynchronous for every functions?

1 messages · Page 1 of 1 (latest)

brave bloom
#

I always wondered, should I use asynchronous function every time? For example, i have a slash command which can add money to a member

async def add_money(self, ctx, member, amount):
        member_data = MemberData(member.id, ctx.guild.id)
        member_data.add_money(amount)

So i have another function which handle all the file managment stuff and i can increase member's money by doing this member_data.add_money(amount) but should i use asynchronous function for performance or it doesn't matter?

old cosmos
brave bloom
#

Ok i see, i now know when i should make the functio async, thank you

old cosmos
#

np

#

.close

icy windBOT
#

Done with your help thread?

Please close your own help thread by using </close:1009144375709814897> with @oblique tiger.