AcornPublishing_essential-csharp-7e/EssentialCSharp-8.0/src/Chapter20/Listing20.05.AwaitStatement.cs
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter20.Listing20_05
{
    using System.Threading.Tasks;

    public class Program
    {
        public async Task<int> DoStuffAsync()
        {
            await DoSomethingAsync();
            await DoSomethingElseAsync();
            return await GetAnIntegerAsync() + 1;
        }

        public Task<int> GetAnIntegerAsync()
        {
            // ...

            throw new System.NotImplementedException();
        }

        public Task DoSomethingElseAsync()
        {
            // ...

            throw new System.NotImplementedException();
        }

        public Task DoSomethingAsync()
        {
            // ...

            throw new System.NotImplementedException();
        }
    }
}






