mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-19 17:23:55 -05:00
Adding cancellation preemption to query execution (#409)
* Adding cancellation preemption to query execution * Removing redundant cancellation check as per PR comment
This commit is contained in:
committed by
Kevin Cunnane
parent
b49fa89be9
commit
b78ca80d5b
@@ -342,6 +342,9 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution
|
||||
|
||||
try
|
||||
{
|
||||
// Verify the request hasn't been cancelled
|
||||
cancellationToken.ThrowIfCancellationRequested();
|
||||
|
||||
// Mark that result has been read
|
||||
hasBeenRead = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user