Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Wait to raise Connected event for Read connection until container is caught up #9377
Wait to raise Connected event for Read connection until container is caught up #9377
Changes from 55 commits
93a0576
9cd2bf2
07fe3a0
e066e4f
ae6daa9
e398758
1d3c732
d149e1e
e28bfb4
2f0f295
80f4704
f99386a
881d158
74a3fb9
edc009a
d8c251e
0c41c00
471e700
2b22dc7
92b308c
c4c47a9
6036a1e
18fa2d0
865161a
bb73c6d
56236fe
f1ae708
5826828
5cc95f6
5712a9c
4ee6c50
521bbd5
4bf6cce
372ce16
71d8265
b75e8ea
4a686b8
1d10985
de1bddc
d384e69
a3940d9
5ab4033
9258e23
7174ecd
7623c55
100dcee
7b6a7f5
a8ea8ea
55ec3b9
25159ab
2c510f6
868b3d9
1022cce
6358703
5b88b4d
4618761
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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 feels like instead of using events, it's better to use a property that exposes a promise. I.e. something like
Promise seems to be better because this event files once, and past "firing" reflected on new listeners - that's exactly what promise does.
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.
That is a great point. I don't remember why I switched to event-based to begin with, but I bet it would work better with Promise. That said, I don't have time to try it out now, and also leaving it will reduce merge conflicts with your follow-on refactor.
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.
What do you all think - is this correct or not? It may not add additional delay since events fire synchronously.