✅ Run code in main thread after Task.Run completed?
Hello, I have a long running void function that I execute in a separate thread by calling
Task.Run(MyFunction)
Task.Run(MyFunction)
. Now how could I run another function in the main thread when this one ends? Do I need to make an event or something? What are the common approaches to this?