Print the stack or traceback for this task's coroutine. This produces output similar to that of the traceback module, for the frames retrieved by get_stack(). The limit argument is passed to get_stack(). The file argument is an I/O stream to which the output is wri
(self, *, limit=None, file=None)
| 170 | return base_tasks._task_get_stack(self, limit) |
| 171 | |
| 172 | def print_stack(self, *, limit=None, file=None): |
| 173 | """Print the stack or traceback for this task's coroutine. |
| 174 | |
| 175 | This produces output similar to that of the traceback module, |
| 176 | for the frames retrieved by get_stack(). The limit argument |
| 177 | is passed to get_stack(). The file argument is an I/O stream |
| 178 | to which the output is written; by default output is written |
| 179 | to sys.stderr. |
| 180 | """ |
| 181 | return base_tasks._task_print_stack(self, limit, file) |
| 182 | |
| 183 | def cancel(self, msg=None): |
| 184 | """Request that this task cancel itself. |
no outgoing calls