vici: Catch Python GeneratorExit to properly cancel streamed event iteration

This commit is contained in:
Martin Willi committed 2015-03-18 13:59:14 +01:00
1 parent 288b654173
commit 90c5b48c96
2 files changed
+12 -1

No files matched your search

+5
View File
@@ -909,6 +909,11 @@ event:
for key in conn:
print key
Please note that if the returned generator is not iterated completely, it must
be closed using _close()_. This is implicitly done when breaking from a loop,
but an explicit call may be required when directly iterating the generator with
_next()_.
## Sorting in dictionaries ##
In VICI, in some message trees the order of objects in dictionary matters. In