Created
November 6, 2018 10:22
-
-
Save DaniCCardenas/c1e907d6f12db5e9061d9207b80b8ee4 to your computer and use it in GitHub Desktop.
Console app with async
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
using System.Threading.Tasks; | |
namespace ConsoleAsyncDemo | |
{ | |
static class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Main().Wait(); | |
} | |
static private async Task Main() | |
{ | |
//do async stuff | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment