(task)
| 7 | |
| 8 | |
| 9 | def _task_repr_info(task): |
| 10 | info = base_futures._future_repr_info(task) |
| 11 | |
| 12 | if task.cancelling() and not task.done(): |
| 13 | # replace status |
| 14 | info[0] = 'cancelling' |
| 15 | |
| 16 | info.insert(1, 'name=%r' % task.get_name()) |
| 17 | |
| 18 | if task._fut_waiter is not None: |
| 19 | info.insert(2, f'wait_for={task._fut_waiter!r}') |
| 20 | |
| 21 | if task._coro: |
| 22 | coro = coroutines._format_coroutine(task._coro) |
| 23 | info.insert(2, f'coro=<{coro}>') |
| 24 | |
| 25 | return info |
| 26 | |
| 27 | |
| 28 | @reprlib.recursive_repr() |
no test coverage detected
searching dependent graphs…