]> granicus.if.org Git - python/commit
Clarify that AsyncExitStack works with coroutine functions (GH-9405)
authorNathaniel J. Smith <njs@pobox.com>
Tue, 18 Sep 2018 21:27:59 +0000 (14:27 -0700)
committerCarol Willing <carolcode@willingconsulting.com>
Tue, 18 Sep 2018 21:27:59 +0000 (14:27 -0700)
commita3c88ef12c7b8993912750b56a1e095652fe47c0
tree13c1ffb44e0329dcaff8bf4e3590ec2d3346a411
parent79d1c2e6c9d1bc1cf41ec3041801ca1a2b9a995b
Clarify that AsyncExitStack works with coroutine functions (GH-9405)

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.)
Doc/library/contextlib.rst