async, await, and Task (part 4)
If you have multiple
In the above program, we do await result1 and await result2 just before we need to pass the return value to another method.
Thus, you can use
💬 The channel has been running since 2018. It needs your support: https://www.patreon.com/csharp1001notes
If you have multiple
async
methods that return the values then you can use await
for all methods just before you want to use the return value in further steps.In the above program, we do await result1 and await result2 just before we need to pass the return value to another method.
Thus, you can use
async
, await, and Task to implement asynchronous programming in .NET Framework or .NET Core using C#.💬 The channel has been running since 2018. It needs your support: https://www.patreon.com/csharp1001notes