An exception may be thrown when using a cancellation token with EF Core's ToListAsync method if the cancellation token is signaled before the query has completed. This may happen, for example, if the user cancels the query or if there is a system error that causes the cancellation token to be signaled. When the cancellation token is signaled, the running operation is canceled and an OperationCanceledException is thrown.
Asked: 2021-10-01 11:00:00 +0000
Seen: 9 times
Last updated: Feb 05 '22