]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Clarify that AsyncExitStack works with coroutine functions (GH-9405) (GH-9408)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 6 Oct 2018 02:29:17 +0000 (19:29 -0700)
committerNed Deily <nad@python.org>
Sat, 6 Oct 2018 02:29:17 +0000 (22:29 -0400)
commit414d58f7450f04a12676aefbc650599930aeaca9
tree85d4423a1da97940b90c1c07698bfb856185a6fc
parent28dd737c46d50f4952c61651426c69cc43991bfa
Clarify that AsyncExitStack works with coroutine functions (GH-9405) (GH-9408)

The docs were ambiguous about whether you pass in a coroutine function
or a coroutine object, e.g. is it:

  aestack.push_async_exit(some_async_func)

or

  aestack.push_async_exit(some_async_func())

(It's the first one.)
(cherry picked from commit a3c88ef12c7b8993912750b56a1e095652fe47c0)

Co-authored-by: Nathaniel J. Smith <njs@pobox.com>
Doc/library/contextlib.rst