Showing archive results for October 2018

Oct 1, 2018
Post comments count2
Post likes count1

The danger of TaskCompletionSource class

Sergey Tepliakov

... when used with async/await. TaskCompletionSource class is a very useful facility if you want to control the lifetime of a task manually. I share a canonical example when TaskCompletionSource is used for converting the event-based asynchronous code to the Task-based pattern.

seteplia