Skip to content

Commit

Permalink
pythongh-97696 Add documentation for get_coro() behavior with eager t…
Browse files Browse the repository at this point in the history
…asks
  • Loading branch information
jbower-fb committed May 8, 2023
1 parent 5c9ee49 commit dfbd9d8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Doc/library/asyncio-task.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1174,6 +1174,11 @@ Task Object

Return the coroutine object wrapped by the :class:`Task`.

.. note::

This will return ``None`` for Tasks which have already
completed eagerly.

.. versionadded:: 3.8

.. method:: get_context()
Expand Down

0 comments on commit dfbd9d8

Please sign in to comment.