]> git.ipfire.org Git - thirdparty/tornado.git/commit
Convert WaitIterator to use while-like iteration instead of for-like.
authorBen Darnell <ben@bendarnell.com>
Sun, 18 Jan 2015 22:06:53 +0000 (17:06 -0500)
committerBen Darnell <ben@bendarnell.com>
Sun, 18 Jan 2015 22:06:53 +0000 (17:06 -0500)
commit7ce0df4c8e7da2a9c6287761f3a1558b0433d496
tree81bee678f6cd7b15d08411de3bc56a33cf4f352e
parent1c72fb2e39aa6e2a26b25f3432f5a453a3288a3d
Convert WaitIterator to use while-like iteration instead of for-like.

Make current_future and current_index attributes instead of methods.
Restructure the internals to avoid quadratic performance.
tornado/gen.py
tornado/test/gen_test.py