C
C#3y ago
Lexa

Async program execution

Hey, in Program.cs i'd like to execute some code after StartAsync, how can i achieve that please without blocking the stack
10 Replies
mikepattyn
mikepattyn3y ago
And the reason why you cannot do that?
Lexa
LexaOP3y ago
Lexa
LexaOP3y ago
i'd like to wait for dispose to close my app i mean if i don't call token.Dispose the app would not close or i could await Task.Delay(-1) but that's odd i think
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX3y ago
nananananananana Banman! rainbanned
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Lexa
LexaOP3y ago
i know it's just some scafholdings lol nothing definitive
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Lexa
LexaOP3y ago
but i'll need to use Depency injecton then ?
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server