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
"disable_omit_fp" can now be included in MONO_DEBUG
[mono-project.git]
/
mcs
/
tests
/
test-async-50.cs
blob
ad9f004a91634fea284ba426313a0935681d0dc8
1
using
System
.
Threading
.
Tasks
;
2
using
System
;
3
4
class
X
5
{
6
static void
Main
()
7
{
8
var
x
=
new
X
();
9
x
.
Run
().
Wait
();
10
}
11
12
Task
<
int
>
AnimateAsync
(
Action callback
)
13
{
14
callback
();
15
return
Task
.
FromResult
(
2
);
16
}
17
18
void
SecondLevel
(
Action callback
)
19
{
20
callback
();
21
}
22
23
async
Task
Run
()
24
{
25
var
ret
=
await
AnimateAsync
(() => {
26
SecondLevel
(() => {
27
Console
.
WriteLine
(
this
);
28
});
29
});
30
}
31
}