10 cze 2020 | Blog | Platform | .net | .net core | async | await | IT
Awaitables are the types on which await can be called. It happens due to “duck typing” – the only thing which makes type “awaitable” is an existence of the GetAwaiter() method that returns type implementing INotifyCompletion interface. That’s it. Obviously, the most popular awaitables are Task and Task<T> so we can await them – this […]