Created
January 23, 2016 10:04
-
-
Save bjartwolf/846c671c0e42d3e89a95 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
public bool Start(HostControl host) | |
{ | |
// exceptions to be thrown on min thread | |
_mainTask.ContinueWith(x => | |
{ | |
throw x.Exception; | |
}, TaskContinuationOptions.OnlyOnFaulted); | |
_mainTask.Start(); | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment