Async/Sync Context Managers are especially neat for Stream Style development. They make such organization possible and comprehensible. i.e:
async with resp.send(): with Page(resp, title): with Form(resp, postpath): self.menu(resp) await nav(resp, dpath, fname) self.show_clipboard(resp) May be, we can broaden the discussion on extended use of Async Context Managers (CM) with asyncio. Timeout CM may be a good start. Regards, Imran On 12/28/15, Andrew Svetlov <andrew.svet...@gmail.com> wrote: > with Timeout(1.5): > # do long running task > await asyncio.sleep(10000) > I'll be happy to make a Pull Request after getting general agreement.