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
[interp] Fall back to old implementation when calling on proxy
[mono-project.git]
/
mcs
/
tests
/
test-async-61.cs
blob
22fe04886621b9a1d32b0718a5f0f12517fce804
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
}