Async - Task ; Thread

Markus Freitag 3,791 Reputation points
2021-06-28T16:02:54.357+00:00

Hello!

Is there an overview of what should be taken when and, above all, how?
I am looking for a good overview with an explanation of why?

  • Thread
  • Task.Run
  • TaskFactory.Run
  • Await - Async Sample is good async

Thank you in advance for good examples and solutions.

When do I use a new function in Event, when do I use the lambda notation? Are there rules about when what and how?

  Serial.Receive += newFunction;  
  Serial.Receive += (req) => {  make something   };  

There are so many possibilities and variants that I no longer know what to take and when.

Developer technologies | C#
{count} votes

Accepted answer
  1. Karen Payne MVP 35,586 Reputation points Volunteer Moderator
    2021-06-28T20:50:12.417+00:00

    See the following blog post and for even more see all of Steven's posts where there are more than you are after but easy to pick the right post out from the list.

    Then there is an important repository on cancellations.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.