Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-async-45.cs
1 using System.Threading.Tasks;
2 using System;
3
4 class MainClass
5 {
6         public static void Main ()
7         {
8                 var task = Connect ("a", "b", "c");
9                 task.Wait ();
10         }
11
12         static async Task Connect (params string[] names)
13         {
14                 foreach (var h in names) {
15                         try {
16                                 await Task.Yield ();
17                         } catch (Exception) {
18                         }
19                 }
20         }
21 }