Skip to content

Commit

Permalink
Fix AsyncEnumerableQuery to support ValueTask<T> aggregates.
Browse files Browse the repository at this point in the history
  • Loading branch information
bartdesmet committed Feb 13, 2019
1 parent 16dbc3d commit 1db4db9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ ValueTask<TResult> IAsyncQueryProvider.ExecuteAsync<TResult>(Expression expressi
throw new ArgumentNullException(nameof(expression));
}

if (!typeof(Task<TResult>).IsAssignableFrom(expression.Type))
if (!typeof(ValueTask<TResult>).IsAssignableFrom(expression.Type))
{
throw new ArgumentException("The specified expression is not assignable to the result type.", nameof(expression));
}
Expand Down

0 comments on commit 1db4db9

Please sign in to comment.