Guido van Rossum added the comment: That patch looks good except please don't call it wait_for(), since there's already tasks.wait_for(). You can call it run_until().
Having to pass the loop to sleep() is only really required in the tests -- there was a movement a while ago (started by Alex Gaynor and supported by Glyph) to always pass in an explicit loop; my compromise was to force the tests to always pass in a loop (by using set_event_loop(None)). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19305> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com