redditwarp.iterators.stubborn_caller_iterator
#
- class redditwarp.iterators.stubborn_caller_iterator.StubbornCallerIterator(iterable: Iterable[Callable[[], T]])[source]#
Bases:
Iterator
[T
]Call each callable in the given iterator and return its result.
If a call raises an exception it will propagate normally. Doing
next(self)
will re-attempt the call until it returns a result.Has a
self.current
attribute to get the current callable.- current: Callable[[], T] | None#