Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-async-05.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: df57e8a3a5eb40026cd24ba2acf5bd6f837826ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using System.Threading.Tasks;

class C
{
	public async Task SynchronousCall (int arg)
	{
		AnotherTask (arg);
	}
	
	Task AnotherTask (int arg)
	{
		return Task.FromResult (arg);
	}
	
	public static void Main ()
	{
		new C ().SynchronousCall (1);
	}
}