projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[System.Net.Http] HttpClient timeout range checks. Fixes #25755
[mono.git]
/
mcs
/
tests
/
test-async-82.cs
1
using System;
2
using System.Threading.Tasks;
3
4
class X
5
{
6
public static int Main ()
7
{
8
if (new X ().Test (false).Result != true)
9
return 1;
10
11
if (new X ().Test (true).Result != true)
12
return 2;
13
14
return 0;
15
}
16
17
public async Task<bool> Test(bool TrueOrFalse)
18
{
19
if (TrueOrFalse)
20
return true;
21
22
try {
23
return true;
24
}
25
finally
26
{
27
await Task.Yield ();
28
}
29
}
30
}