Skip to content

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.

2 participants