❔ Passing around thread to perform work on?
I'd like to call a method that runs on the main thread but offloads a portion of it's work onto a passed in thread.
Here's a stripped down version of what I'm looking to accomplish...
I'm not 100% sure on the best way to go about this.
2 Replies
I'm aware you could run the second half of
DoThing
in a Task but that method could be called hundreds of times at once and starting new Tasks that frequently seems like a bad idea.
Although reading more about this, it would suggest Tasks might be okay? I'd still like to be able to control the thread used if possible.
Disregard. I'll just use the ThreadPool methods to control utilization better.Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.