DoWorkExplicitTasks() публичный Метод

public DoWorkExplicitTasks ( ) : Task
Результат Task
Пример #1
0
 /// <summary>
 /// Runs all 3 variations of the Simple code to ensure
 /// they all have the same result
 /// </summary>
 /// <returns></returns>
 static async Task SimpleMainAsync()
 {
     var worker = new SimpleAsyncWorker();
     await worker.DoWork();
     await worker.DoWorkExplicitTasks();
     await worker.DoWorkWithoutAwait();
 }
Пример #2
0
        /// <summary>
        /// Runs all 3 variations of the Simple code to ensure
        /// they all have the same result
        /// </summary>
        /// <returns></returns>
        static async Task SimpleMainAsync()
        {
            var worker = new SimpleAsyncWorker();
            await worker.DoWork();

            await worker.DoWorkExplicitTasks();

            await worker.DoWorkWithoutAwait();
        }