© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
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
?
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
✅ Thread and Threading
C
C# / help
2y ago
✅ THREADING & CHARTS
C
C# / help
12mo ago
VS threading
C
C# / help
2y ago
Any Methods to Obtain POSIX Thread Handle for System.Threading.Thread in Linux
C
C# / help
2y ago