diff options
author | Alex Grönholm <alex.gronholm@nextday.fi> | 2019-05-30 15:30:09 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-05-30 15:30:09 (GMT) |
commit | 98ef92002ec289bf8086b0ef3d4f96c2589f4e68 (patch) | |
tree | 0c3420f69cef6e0c306af7508fdd06415b39a853 /Doc/library | |
parent | 25ee0c3bf10820496448e2886069f9c2794be7ac (diff) | |
download | cpython-98ef92002ec289bf8086b0ef3d4f96c2589f4e68.zip cpython-98ef92002ec289bf8086b0ef3d4f96c2589f4e68.tar.gz cpython-98ef92002ec289bf8086b0ef3d4f96c2589f4e68.tar.bz2 |
bpo-36999: Add asyncio.Task.get_coro() (GH-13680)
https://bugs.python.org/issue36999
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/asyncio-task.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst index d94fa58..1fcdcb9 100644 --- a/Doc/library/asyncio-task.rst +++ b/Doc/library/asyncio-task.rst @@ -842,6 +842,12 @@ Task Object The *file* argument is an I/O stream to which the output is written; by default output is written to :data:`sys.stderr`. + .. method:: get_coro() + + Return the coroutine object wrapped by the :class:`Task`. + + .. versionadded:: 3.8 + .. method:: get_name() Return the name of the Task. |