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

feat: Implement CPS non-asyncio subscriber #25

Merged
merged 3 commits into from Sep 25, 2020
Merged

Conversation

dpcollins-google
Copy link
Collaborator

Implement CPS subscriber that takes a message callback and returns a StreamingPullFuture.

@dpcollins-google dpcollins-google requested a review from a team as a code owner September 23, 2020 20:59
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 23, 2020
pass
self._event_loop.submit(self._underlying.__aexit__(exc_type, exc_value, traceback)).result()
self._event_loop.__exit__(exc_type, exc_value, traceback)
assert self._close_callback is not None

Choose a reason for hiding this comment

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

IIUC, we will fail if close_callback is None. I'd personally make this optional, but if you choose not to do this, can you document this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

@dpcollins-google dpcollins-google merged commit a9293c1 into master Sep 25, 2020
@anguillanneuf anguillanneuf deleted the cps_no_asyncio branch March 25, 2022 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants