ewoksdata.data.contextiterator.ContextIterator#
- class ewoksdata.data.contextiterator.ContextIterator(it)[source]#
Bases:
Generator
Can wrap an iterator or generator to ensure cleanup when used as a context manager.
- Parameters:
it (
Iterator
)
- close()#
Raise GeneratorExit inside generator.