]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fixed typo (GH-11522)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 18 May 2019 09:48:47 +0000 (02:48 -0700)
committerGitHub <noreply@github.com>
Sat, 18 May 2019 09:48:47 +0000 (02:48 -0700)
commit561c63cd70727e92179018188a9a9c33587fbd3f
tree536aacd87bcd796fe185337f907a8bfad3e811a4
parent740a7cde9c0af5a237a7f6525b38d65a83f4fbf1
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.
(cherry picked from commit ceb842e155f5fa0109fa88d52da3d1f5e73490ad)

Co-authored-by: Alexander Vasin <hi@alvass.in>
Doc/library/asyncio-eventloop.rst