Details
-
Bug
-
Resolution: Works as Designed
-
Major - P3
-
None
-
2.3
-
None
-
Server - Ununtu 16.x
Client - Windows Server 2012
Description
I run long Count operation (sync version), that use 10 sec query (in this case its normal).
We can't use async version for some reasons.
...
|
|
|
cancellationTokenSource.CancelAfter(1000); |
|
|
GetCollection<SomeModel>("SomeModel").Count(filter, cancellationTokenSource.Token) |
But Сount whatever takes 10 seconds. Why it is not cancelling ?
Or it check it only before start ?
I know about MaxTime, but we need to set time limit for many operations and this bug cause use us bad design code.
Attachments
Issue Links
- depends on
-
CSHARP-1200 Support cancellation of operations once network I/O has begun
-
- Backlog
-