예제 #1
0
        private static async void SimpleWaitAsync()
        {
            SimpleVoidAwaitable awaitable = new SimpleVoidAwaitable();
            await awaitable;

            Console.WriteLine("After await");
        }
예제 #2
0
 static async void SimpleWaitAsync()
 {
     SimpleGenericAwaitable <int> awaitable = new SimpleVoidAwaitable();
     await awaitable;
 }
예제 #3
0
 private static async void SimpleWaitAsync()
 {
     SimpleVoidAwaitable awaitable = new SimpleVoidAwaitable();
     await awaitable;
     Console.WriteLine("After await");
 }
예제 #4
0
 static async void SimpleWaitAsync()
 {
     SimpleGenericAwaitable<int> awaitable = new SimpleVoidAwaitable();
     await awaitable;
 }