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
// Don't do this, because you don't need async if you're only calling one | |
// downstream async method and returning its value, unprocessed. | |
public async Task<int> DoSomething(int x, int y) | |
{ | |
return await SlowMath.AddAsync(x, y); | |
} | |
// Do this instead: | |
public Task<int> DoSomething(int x, int y) | |
{ |