Skip to content

Instantly share code, notes, and snippets.

@DaniCCardenas
Created November 6, 2018 10:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DaniCCardenas/c1e907d6f12db5e9061d9207b80b8ee4 to your computer and use it in GitHub Desktop.
Save DaniCCardenas/c1e907d6f12db5e9061d9207b80b8ee4 to your computer and use it in GitHub Desktop.
Console app with async
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