Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.