Thanks for the feedback! Async is hard. Even when you do know how to use it...
Just an extra thought - HostingEnvironment.QueueBackgroundWorkItem() still uses threads from the thread pool in web apps. Triggering many long-running background tasks could actually cause thread starvation in high-demand scenarios.
Take care Joe!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for the feedback! Async is hard. Even when you do know how to use it...
Just an extra thought -
HostingEnvironment.QueueBackgroundWorkItem()
still uses threads from the thread pool in web apps. Triggering many long-running background tasks could actually cause thread starvation in high-demand scenarios.Take care Joe!