Created
December 5, 2017 13:02
-
-
Save danielmarbach/e096707c2267adeb6c2de2b47c676d79 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
using System; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace test | |
{ | |
class Program | |
{ | |
static async Task Main(string[] args) | |
{ | |
await Task.Factory.StartNew(async () => await DoStuff().ConfigureAwait(false), CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Current); | |
} | |
static async Task DoStuff(bool doSleep = true, bool configAwait = true) | |
{ | |
} | |
} | |
} |
Author
danielmarbach
commented
Dec 5, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment