Skip to content

Instantly share code, notes, and snippets.

@jernejk
Last active March 7, 2020 13:00
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 jernejk/ebca2642ab85147d1f363fb9b9903d44 to your computer and use it in GitHub Desktop.
Save jernejk/ebca2642ab85147d1f363fb9b9903d44 to your computer and use it in GitHub Desktop.
public async Task<IEnumerable<Tweet>> GetTweets(CancellationToken ct = default)
{
return await _context.Tweets
.ToListAsync(ct)
.ConfigureAwait(false);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment