You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If provided cancellation token gets cancelled during execution of InnerExecuteAsync method and any listener code checks token and throws exception it gets lost because regardless of cancellation token state finally block gets executed where PreInvalidateCachesAsync method checks token again and throws exception of its own. I would advice to not call that method if cancellation was requested and allow exception to bubble.
If provided cancellation token gets cancelled during execution of
InnerExecuteAsync
method and any listener code checks token and throws exception it gets lost because regardless of cancellation token state finally block gets executed wherePreInvalidateCachesAsync
method checks token again and throws exception of its own. I would advice to not call that method if cancellation was requested and allow exception to bubble.nhibernate-core/src/NHibernate/Async/Engine/ActionQueue.cs
Lines 55 to 66 in 8a1b084
The text was updated successfully, but these errors were encountered: