Skip to content

feat: Implement CPS non-asyncio subscriber#25

Merged
dpcollins-google merged 3 commits into
masterfrom
cps_no_asyncio
Sep 25, 2020
Merged

feat: Implement CPS non-asyncio subscriber#25
dpcollins-google merged 3 commits into
masterfrom
cps_no_asyncio

Conversation

@dpcollins-google
Copy link
Copy Markdown
Contributor

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

@dpcollins-google dpcollins-google requested a review from a team 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
Copy link
Copy Markdown

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
Copy Markdown
Contributor 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