Created
October 6, 2015 21:12
-
-
Save i3arnon/53320776ca1f226763f6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| Task<Task> task = Task.Factory.StartNew(async () => | |
| { | |
| while (IsEnabled) | |
| { | |
| await FooAsync(); | |
| await Task.Delay(TimeSpan.FromSeconds(10)); | |
| } | |
| }, TaskCreationOptions.LongRunning); | |
| Task actualTask = task.Unwrap(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment