-
Type:
Bug
-
Resolution: Works as Designed
-
Priority:
Major - P3
-
None
-
Affects Version/s: 2.3
-
Component/s: API
-
None
-
Environment:Server - Ununtu 16.x
Client - Windows Server 2012
-
None
-
None
-
None
-
None
-
None
-
None
-
None
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.
- depends on
-
CSHARP-1200 Support cancellation of operations once network I/O has begun
-
- Closed
-