79501053

Date: 2025-03-11 14:20:13
Score: 1.5
Natty:
Report link

Maybe something like this?

var users = Users.ToAsyncEnumerable()
    .WhereAwait(async x => await IsGrantedAsync(x.Id, permissionName));

This uses the System.Linq.Async package as you cannot provide an asynchronous function to the Where method.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: ashtondunderdale