Keeping track of interesting places I put my feet on in the software development world.
Search This Blog
Showing posts with label Tasks. Show all posts
Showing posts with label Tasks. Show all posts
Monday, August 26, 2019
Wednesday, July 25, 2018
Workaround for the inability to assign a name to a Task in C#
There is no way to set a name to a Task. Sometimes seems this would be useful, like we used to do with Threads, so we could know which threads are still running, i.e., which pieces of our whole processing are still left to do.
I thought of using a dictionary to relate Task ids and names we want to assign them.
Here is a sample.
I thought of using a dictionary to relate Task ids and names we want to assign them.
Here is a sample.
Sunday, September 10, 2017
Task.Run, Unwrap and other .NET 4.5 additions
https://blogs.msdn.microsoft.com/pfxteam/2011/10/24/task-run-vs-task-factory-startnew
Found the Unwrap particularly interesting.
Found the Unwrap particularly interesting.
Subscribe to:
Posts (Atom)