RedTShirtGaming
async functions always finish on a background thread
Hello! I'm experienced with C#, but I'm just starting to learn about async functions and multithreading. I'm having an issue where a function that contains 'await Task.Run(...)' always finishes running on a background thread and not the main thread that it was called from. Here is my code
Is there a way of ensuring that the function that was called from the main thread always finishes running on the main thread? Thanks :D
60 replies