© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
27 replies
Keyinator

Threading Return to old thread

I have the following code where the function on line 13 changes the thread to another id. How can I make it so that when
Task.Run
Task.Run
ends, I am back on the original Thread where
CallOnMainThread
CallOnMainThread
started?
unknown.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Thread and Threading
C#CC# / help
2y ago
✅ THREADING & CHARTS
C#CC# / help
12mo ago
VS threading
C#CC# / help
2y ago
Any Methods to Obtain POSIX Thread Handle for System.Threading.Thread in Linux
C#CC# / help
2y ago