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
SpiltStringBetweenSpecialCharacters
Namespace basic
miner
Q-2 dotnet
5
Get Combined Placeholder Settings and New Content Length
Roman to Arabic number conversion without semantic control
Conditional linq operators
Permutations of string
User Defined Exception (Inherited from built-in Exception class)