question

Arsium-4135 avatar image
0 Votes"
Arsium-4135 asked karenpayneoregon answered

Asynchronous work : async/await vs delegates vs AsyncEvent

I always use delegates to make my functions asynchronous and wonder if there is better way to achieve asynchronous work. I know async/await or even AsyncEvent (like SocketAsyncEventArgs).
My question is : what is the difference between those three ways ? And why choosing one over the others ?

dotnet-csharp
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

karenpayneoregon avatar image
0 Votes"
karenpayneoregon answered

I would recommend you read the following post.

How I see it, which one to select is dependent on the task at hand, not one is going to fit all task.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.