Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic
Created June 3, 2018 10:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NMZivkovic/533a9d07acf2ce7b59fb4b290ec520ce to your computer and use it in GitHub Desktop.
Save NMZivkovic/533a9d07acf2ce7b59fb4b290ec520ce to your computer and use it in GitHub Desktop.
// 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