Home Tags Privacy About

All posts tagged with "Tasks and threads"

The .Net Task library is a convenient way to run a function in parallel. A Task is basically a promise to return a result once it is done.

← Newer Posts Page 2 of 2

C# - How to break an async/await chain when calling something that is not asynchronous

I have sometimes found myself - at the end of a long chain of using async/await - calling something that is not using async. Sometimes »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on C#, Tasks and threads 16 October 2018

C# - Iterate through all items in a list In parallel and wait for them all to finish

You can easily iterate through each item in a list, run a function on each and wait for all to finish. All you have to do »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on C#, Tasks and threads 02 October 2018

C# - how to create a successfully completed task with a result

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 »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on C#, Tasks and threads 28 January 2018

Easy and Simple way to start a new task in C#

I recently look for an easy way to start a new task in C#. Many of the examples that I found required several lines of code. »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on C#, Tasks and threads 13 October 2017

C# - Thread.Sleep(1); takes more than 1 milisecond - around 16ms

I recently had to hunt down a bug. We were experiencing a piece of code running very slowly. The executed code should take way less than »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on C#, Tasks and threads 30 April 2017
← Newer Posts Page 2 of 2
  • Rss
  • Twitter
  • LinkedIn
  • profile for Peter Rasmussen at Stack Overflow, Q&A for professional and enthusiast programmers
Peter Daugaard Rasmussen - developer, Consultant, Blogger © 2025 Privacy policy