Problem appeared in #291, in case of cancelled parent task of connection opening the exception which supposed to notify about cancellation became swallowed. Adding TaskContinuationOption.NotOnCanceled prevents continuation from happening and the exception is risen and passed to user code how it should be.
Problem appeared in #291, in case of cancelled parent task of connection opening the exception which supposed to notify about cancellation became swallowed. Adding
TaskContinuationOption.NotOnCanceled
prevents continuation from happening and the exception is risen and passed to user code how it should be.