Skip to content
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

Cassandra 17033 #1304

Closed
wants to merge 5 commits into from
Closed

Cassandra 17033 #1304

wants to merge 5 commits into from

Conversation

dcapwell
Copy link
Contributor

@dcapwell dcapwell commented Nov 5, 2021

No description provided.

});
return promise;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So to summarize my understanding, waiting for binding, the previously returned Future was insufficient, because the body of the listener is not guaranteed to run before it presents itself as complete. So (taking care to protect the shared mutable state of binding and listen), we create a separate promise whose completion guarantees that the state we need to change has already been changed. If so, +1 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants