Search This Blog

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.

No comments:

Post a Comment