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

Calling watch.stop() does not close the response correctly #60

Closed
hubo1016 opened this issue Feb 15, 2019 · 0 comments · Fixed by #61
Closed

Calling watch.stop() does not close the response correctly #60

hubo1016 opened this issue Feb 15, 2019 · 0 comments · Fixed by #61

Comments

@hubo1016
Copy link
Contributor

if self._stop:
raise StopAsyncIteration

It just raises an exception to exit.

I think we should add async context manager support for Watch objects, so it closes the response in __aexit__.

hubo1016 pushed a commit to hubo1016/kubernetes_asyncio that referenced this issue Feb 15, 2019
@hubo1016 hubo1016 mentioned this issue Feb 15, 2019
tomplus pushed a commit that referenced this issue Feb 22, 2019
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 a pull request may close this issue.

1 participant