[QUESTION] Terminate a query by cancellation token #4472
Replies: 5 comments
-
Cancellation token is passed to ADO.NET provider methods (such as For example some providers have true async I/O implementation, others just do sync-over-async. |
Beta Was this translation helpful? Give feedback.
-
We have some tests for cancellation and most of providers with async support support it properly at least for tested methods. Only exception is |
Beta Was this translation helpful? Give feedback.
-
I also wonder what |
Beta Was this translation helpful? Give feedback.
-
For such providers called async method implemented by base ado.net class, which calls sync implementation and checks token cancellation. |
Beta Was this translation helpful? Give feedback.
-
Notice that the call you linked to only happens before the request actually starts.
|
Beta Was this translation helpful? Give feedback.
-
I would like to know if async methods querying data in case cancellation token passed to linq2db is triggered will generate query to cancel or will keep running in the db engine under the hood. Thanks
Beta Was this translation helpful? Give feedback.
All reactions