Skip to content

Commit

Permalink
Query: Use cancellationToken appropriately
Browse files Browse the repository at this point in the history
  • Loading branch information
smitpatel committed Sep 8, 2021
1 parent f96aa98 commit 9e15378
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 9e15378

Please sign in to comment.