projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #966 from ermshiperete/bug-xamarin-18511
[mono.git]
/
mcs
/
tests
/
test-async-61.cs
1
using System.Threading.Tasks;
2
using System;
3
4
class X
5
{
6
public static void Main ()
7
{
8
new X ().Foo ().Wait ();
9
}
10
11
async Task Foo ()
12
{
13
await Task.Run (async () => {
14
for (var count = 1; count < 5; count++) {
15
Invoke (() => {
16
Console.WriteLine ("{0}", count);
17
});
18
}
19
});
20
}
21
22
void Invoke (Action a)
23
{
24
a ();
25
}
26
}