Skip to content

Instantly share code, notes, and snippets.

@idkaaa
Last active February 2, 2016 15:49
Show Gist options
  • Save idkaaa/a69735b79a52ad9f25a9 to your computer and use it in GitHub Desktop.
Save idkaaa/a69735b79a52ad9f25a9 to your computer and use it in GitHub Desktop.
public async Task DoWork()
{
int res = await Task.FromResult<int>(GetSum(4, 5));
}
private int GetSum(int a, int b)
{
return a + b;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment