Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// 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