repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[tuner] handle the case with multiple "preserve" attributes
[mono-project.git]
/
mcs
/
tests
/
test-async-45.cs
blob
c39c9ae246a670d02757b244e4c9cd872f190c96
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
}