Created
June 3, 2018 10:31
-
-
Save NMZivkovic/533a9d07acf2ce7b59fb4b290ec520ce 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
// Without async | |
public Task<int> OperationAsync(string input) | |
{ | |
// some code | |
return new Task<int>().Start(); | |
} | |
// With async | |
public async Task<int> MethodAsyncInternal(string input) | |
{ | |
// code that uses await | |
return value; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment