]> granicus.if.org Git - python/commit
Fixed typo (GH-11522)
authorAlexander Vasin <hi@alvass.in>
Fri, 3 May 2019 15:25:36 +0000 (18:25 +0300)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 3 May 2019 15:25:36 +0000 (08:25 -0700)
commitceb842e155f5fa0109fa88d52da3d1f5e73490ad
tree6d8cb2ebbac47022a878be49f2a7c782ce29a6f2
parentc1964e9e2177eabe821f3e4243be8b99e0d2d542
Fixed typo (GH-11522)

Given example does not run, loop variable is missing.

Secondly, this is bad example how to handle shutdown signal, because it would cause `RuntimeError: Event loop stopped before Future completed.`

Perhaps it would be better to cancel all tasks instead of closing loop directly?

Did not create issue, because question is quite simple.
Doc/library/asyncio-eventloop.rst