Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Demonstration await Control returned to the Caller
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Threading; namespace Rextester { public class Program { private static async Task<bool> DoSomethingAsync() { Console.WriteLine("DoSomethingAsync Content - Init"); await Task.Run(() => { for(int i = 0; i < 10; i++); Console.WriteLine("--- Looping ended ---"); }); Console.WriteLine("DoSomethingAsync Content - End"); return true; } public static void Main(string[] args) { //Your code goes here Console.WriteLine("Hello, world!"); DoSomethingAsync(); Console.WriteLine("It's Friday!"); } } }
run
|
edit
|
history
|
help
0
BEISPEIL- AUGUST 6 -2019
asdcsadxasxd
Create URL Safe and Cryptographically Strong Short GUID
Lesson 2
N
Collections
Copy_BubbleSort
Robot
Generics basics
Cenforce 100 mg