mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Closes #22475: asyncio doc, fix Task.get_stack() doc
This commit is contained in:
parent
039f703b7b
commit
d87de83582
2 changed files with 2 additions and 2 deletions
|
@ -413,7 +413,7 @@ Task
|
||||||
|
|
||||||
Return the list of stack frames for this task's coroutine.
|
Return the list of stack frames for this task's coroutine.
|
||||||
|
|
||||||
If the coroutine is active, this returns the stack where it is suspended.
|
If the coroutine is not done, this returns the stack where it is suspended.
|
||||||
If the coroutine has completed successfully or was cancelled, this
|
If the coroutine has completed successfully or was cancelled, this
|
||||||
returns an empty list. If the coroutine was terminated by an exception,
|
returns an empty list. If the coroutine was terminated by an exception,
|
||||||
this returns the list of traceback frames.
|
this returns the list of traceback frames.
|
||||||
|
|
|
@ -109,7 +109,7 @@ class Task(futures.Future):
|
||||||
def get_stack(self, *, limit=None):
|
def get_stack(self, *, limit=None):
|
||||||
"""Return the list of stack frames for this task's coroutine.
|
"""Return the list of stack frames for this task's coroutine.
|
||||||
|
|
||||||
If the coroutine is active, this returns the stack where it is
|
If the coroutine is not done, this returns the stack where it is
|
||||||
suspended. If the coroutine has completed successfully or was
|
suspended. If the coroutine has completed successfully or was
|
||||||
cancelled, this returns an empty list. If the coroutine was
|
cancelled, this returns an empty list. If the coroutine was
|
||||||
terminated by an exception, this returns the list of traceback
|
terminated by an exception, this returns the list of traceback
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue