Both sync and async generators now behave the same way. If the
generator coroutine throws an exception, it is rethrown either
from generator's begin() method, or when incrementing the
generator iterator.
Afterwards both the iterator and the generator are considered
invalid and may not be used anymore.
Both sync and async generators now behave the same way. If the generator coroutine throws an exception, it is rethrown either from generator's begin() method, or when incrementing the generator iterator.
Afterwards both the iterator and the generator are considered invalid and may not be used anymore.