We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import asyncio from aioreactive.core import AsyncObservable, run async def generator(): # Also fails with sync generators for i in range(10): if i > 2: print("Let's raise") raise ValueError(i) # stream hangs here await asyncio.sleep(.1) print('Yield', i) yield i async def main(): iterable = generator() observer = AsyncObservable.from_iterable(iterable) await run(observer, timeout=None) if __name__ == '__main__': loop = asyncio.get_event_loop() loop.run_until_complete(main()) loop.close()
So the flow is simply hangs after the exception is thrown in the generator
The text was updated successfully, but these errors were encountered:
No branches or pull requests
So the flow is simply hangs after the exception is thrown in the generator
The text was updated successfully, but these errors were encountered: