Created
June 3, 2018 10:45
-
-
Save NMZivkovic/138ee27d8c5fd3ea5778e90a8e931b25 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
var token = new CancellationTokenSource(); | |
string result = await OperationAsync(param1, param2, param3, token.Token); | |
… // at some point later, potentially on another thread | |
token.Cancel(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment