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

Add async for support for consuming messages #76

Closed
wallyqs opened this issue Aug 20, 2018 · 3 comments
Closed

Add async for support for consuming messages #76

wallyqs opened this issue Aug 20, 2018 · 3 comments
Milestone

Comments

@wallyqs
Copy link
Member

wallyqs commented Aug 20, 2018

Implement asynchronous iterator for the client: https://www.python.org/dev/peps/pep-0492/#asynchronous-iterators-and-async-for

sub = await sc.subscribe("foo")
async for msg in sub.messages:
    print("Received a message (seq={}): {}".format(msg.seq, msg.data))
@wallyqs wallyqs added this to the v1.0.0 milestone Aug 20, 2018
@1755
Copy link

1755 commented Sep 12, 2018

Is anyone doing the issue? I can try to open PR to solve this

@wallyqs
Copy link
Member Author

wallyqs commented Sep 12, 2018

not that I'm aware of, @1755 feel to send PR and will take a look 👍

@wallyqs
Copy link
Member Author

wallyqs commented Sep 22, 2020

This is included in v1-dev branch already

@wallyqs wallyqs closed this as completed Sep 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants