-
-
Notifications
You must be signed in to change notification settings - Fork 313
Add CT to DiscordClient#ConnectAsync #2011
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
base: master
Are you sure you want to change the base?
Conversation
@@ -36,6 +36,7 @@ private async Task ReceiveGatewayEventsAsync() | |||
{ | |||
while (!this.eventReader.Completion.IsCompleted) | |||
{ | |||
// Open question: Do we want to pass a CT here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes because this loop waits until the next recieved gw event
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CT is cancelled further up, which should in theory gracefully close the channel, instead of outright aborting it? ChannelClosedException vs OperationCancelledException, I'll have to look at this more closely.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have you perchance looked at this more closely?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can when I'm not 6 hours past my sleep schedule
(also you can't just say perchance)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's valid to be thorough and add an extra check if we're not sure. Or- like aki said, double check :))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mergeable if plerx' comment is addressed
Is there any plan to finish this? |
No description provided.