If I make a CancellationTokenSource and pass it down to a place where I perform a query like this:
await command.Connection.OpenAsync();
dataReader = await command.ExecuteReaderAsync(_cancellationToken);
If immediately below this I add the following:
_cancellationToken.ThrowIfCancellationRequested();
resultTable.Load(dataReader);
If on a different thread _cancellationTokenSource.Cancel() is called, will the query be cancelled appropriately?