mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-36999: Add asyncio.Task.get_coro() (GH-13680)
https://bugs.python.org/issue36999
This commit is contained in:
parent
25ee0c3bf1
commit
98ef92002e
6 changed files with 52 additions and 1 deletions
|
@ -152,6 +152,9 @@ class Task(futures._PyFuture): # Inherit Python Task implementation
|
|||
def _repr_info(self):
|
||||
return base_tasks._task_repr_info(self)
|
||||
|
||||
def get_coro(self):
|
||||
return self._coro
|
||||
|
||||
def get_name(self):
|
||||
return self._name
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue