await async task - CSharp Thread Asynchronous

CSharp examples for Thread Asynchronous:Async

Description

await async task

Demo Code

using System;/*from w  w  w  .  j  a v a  2  s.c  om*/
using System.Threading.Tasks;
using System.IO;
class Program
{
    static void Main(string[] args)
    {
        Console.ReadKey();
    }
    private static async Task<bool> getBoolOldWayAsync()
    {
        await Task.Delay(3000);
        return false;
    }
}

Related Tutorials