[New-bugs-announce] [issue31035] Document order of firing callbacks added with Future.add_done_callback()

Марк Коренберг report at bugs.python.org
Tue Jul 25 11:13:38 EDT 2017


New submission from Марк Коренберг:

Please document these two things:

* Order of callbacks firing is not specified. (Is it True?)
* All callbacks are called *BEFORE* await triggered:
  ====
  f = asyncio.Future()
  f.add_done_callback(xxx)
  f.add_done_callback(yyy)
  try:
     await f
  except Exception:
     ...  # all callbacks are called BEFORE entering that place (for example)
* How exceptions in callbacks are handled

----------
assignee: docs at python
components: Documentation, asyncio
messages: 299095
nosy: docs at python, socketpair, yselivanov
priority: normal
severity: normal
status: open
title: Document order of firing callbacks added with Future.add_done_callback()
type: enhancement
versions: Python 3.5, Python 3.6, Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31035>
_______________________________________


More information about the New-bugs-announce mailing list