© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
18 replies
Heroshrine

✅ Does supplying a task with a delegate / action run that action on the main thread?

I would think if I do this it would run the method on the task's thread, but online I seem to have found information that this is the correct way to retrieve information from a thread? If this doesn't work, what is the correct way to retrieve information from a worker thread?
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

Delegate with Task problem
C#CC# / help
2y ago
✅ Run code in main thread after Task.Run completed?
C#CC# / help
3y ago
❔ Running an awaitable async Task, but forcing it to run on a specific thread (main thread).
C#CC# / help
3y ago
✅ Assigning an Action to a delegate
C#CC# / help
4y ago