Created
May 12, 2020 15:14
-
-
Save kevingosse/c0cc1806eff7800e23ff9fec92db5fbb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Program | |
{ | |
public static async Task ProcessAsync() | |
{ | |
await Task.Delay(2000); | |
Console.WriteLine("Processing done"); | |
} | |
static async Task Main(string[] args) | |
{ | |
await Task.Factory.StartNew(ProcessAsync); | |
Console.WriteLine("End of program"); | |
Console.ReadLine(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment