Skip to content

Commit

Permalink
Query: Use cancellationToken appropriately (#25918)
Browse files Browse the repository at this point in the history
  • Loading branch information
smitpatel authored Sep 8, 2021
1 parent 6c1694a commit 804ff9e
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1482,10 +1482,11 @@ private static async Task PopulateSplitIncludeCollectionAsync<TIncludingEntity,
(queryContext, relationalCommandCache, detailedErrorsEnabled),
((RelationalQueryContext, RelationalCommandCache, bool) tup, CancellationToken cancellationToken)
=> InitializeReaderAsync(tup.Item1, tup.Item2, tup.Item3, cancellationToken),
verifySucceeded: null)
verifySucceeded: null,
queryContext.CancellationToken)
.ConfigureAwait(false);

async Task<RelationalDataReader> InitializeReaderAsync(
static async Task<RelationalDataReader> InitializeReaderAsync(
RelationalQueryContext queryContext,
RelationalCommandCache relationalCommandCache,
bool detailedErrorsEnabled,
Expand Down Expand Up @@ -1801,10 +1802,11 @@ private static async Task PopulateSplitCollectionAsync<TCollection, TElement, TR
(queryContext, relationalCommandCache, detailedErrorsEnabled),
((RelationalQueryContext, RelationalCommandCache, bool) tup, CancellationToken cancellationToken)
=> InitializeReaderAsync(tup.Item1, tup.Item2, tup.Item3, cancellationToken),
verifySucceeded: null)
verifySucceeded: null,
queryContext.CancellationToken)
.ConfigureAwait(false);

async Task<RelationalDataReader> InitializeReaderAsync(
static async Task<RelationalDataReader> InitializeReaderAsync(
RelationalQueryContext queryContext,
RelationalCommandCache relationalCommandCache,
bool detailedErrorsEnabled,
Expand Down

0 comments on commit 804ff9e

Please sign in to comment.