Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
More intuitive coroutine exit #2
In your examples you use next piece of code:
I would say, that finally is also not very illustrative. How about adding exception
@coroutine def do_job() try: while True: yield do_something() except CoroutineCancelled: print 'Done!'
You may also create alias
Thanks for the cool library!
I'm glad to see somebody is finding the library useful! :)
However, can you please elaborate a bit on the purpose of such change? What would this
Let me also point out that
All works fine. This is only about code readability.
You are right, that finally and