AsyncOverSimplified.Program.MoreRealisticMainAsync C# (CSharp) Method

MoreRealisticMainAsync() static private method

Runs all 3 variations of the MoreRealistic code to ensure they all have the same result
static private MoreRealisticMainAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task
        static async Task MoreRealisticMainAsync()
        {
            var worker = new MoreRealisticAsyncWorker();
            await worker.DoWork();
            await worker.DoWorkExplicitTasks();
            await worker.DoWorkWithoutAwait();
        }
    }