❔ Quickest way to get an async function to run?

I have an async function with an await inside and I'm currently using Task.Run to start it, but there is a small delay in starting. Is there a way to make it run straight away?
5 Replies
Angius
Angius2y ago
Just... await it..?
Limited Past
Limited Past2y ago
i cant await it because its being called from a non-async function
Angius
Angius2y ago
Then make that method async as well It's async all the way down
Limited Past
Limited Past2y ago
Thanks guys, I'll just await it and make the calling functions async
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.