-
Notifications
You must be signed in to change notification settings - Fork 595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create cancellation token from timeout
#1775
Conversation
@JanEggers - can you test this out? |
sure |
just had a look at your change. is there a reason you put the cancellationtokensource inside the extensions? I think it is better placed inside the method in the connection class itself. if someone calls the method on the connection and not the extensions there might still be an issue. |
@JanEggers good point, let me look at that. |
all of my tests are green again with this change, so looks good thx. |
Fixes #1759 When passing a timeout of 0, `DisposeAsync` would block forever after closing a connection. This change ensures that the timeout is used in a cancellation token.
f29946d
to
fa9bc43
Compare
Thank you for the reviews @michaelklishin and @danielmarbach! |
Fixes #1759
When passing a timeout of 0,
DisposeAsync
would block forever after closing a connection.This change ensures that the timeout is used in a cancellation token.