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

initial stream monitor concept #52

Merged
merged 4 commits into from
Jul 31, 2015

Conversation

claws
Copy link
Contributor

@claws claws commented Jul 2, 2015

This is an initial concept for exposing the monitor capability with streams. What do you think?
Obviously lots of tests, docs updates would follow but does this look like a useful approach?

@@ -123,12 +126,15 @@ def __init__(self, loop, *, high=None, low=None):
self._protocol = ZmqStreamProtocol(self, loop=loop)
self._loop = loop
self._queue = collections.deque()
self._event_queue = collections.deque()
Copy link
Member

Choose a reason for hiding this comment

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

Please add constructor parameter for managing _event_queue size.
I guess default should be big enough -- say, 100 events (which is not too big for taking care about memory consumption). None is not allowed -- I'd like to reserve None for adding flow control later if needed.

@asvetlov asvetlov merged commit adad3a8 into aio-libs:master Jul 31, 2015
@asvetlov
Copy link
Member

I've finished the work

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

Successfully merging this pull request may close these issues.

None yet

2 participants