C# - When to use threads instead of tasks
I have not yet found a situation where I needed a thread instead of a Task. Threads are a lower level concept when compared to tasks. »
I have not yet found a situation where I needed a thread instead of a Task. Threads are a lower level concept when compared to tasks. »
It is quite easy to start a new thread in C#. All you need is to instantiate a new object of the type Thread and call »
I had a discussion a couple of weeks ago about tasks and threads. It occurred to me that I had rarely used threads and mostly used »
I have sometimes found myself - at the end of a long chain of using async/await - calling something that is not using async. Sometimes »
Tasks can be a bit of a pain when writing tests, especially when a dependency returns a task. Often it is just enough to return a »