Home | History | Annotate | Download | only in asyncio

Lines Matching refs:future

17 # States for Future.
24 """Check for a Future.
26 This returns True when obj is a Future instance or is advertising
28 See comment in Future for more details.
35 """helper function for Future.__repr__"""
54 def _future_repr_info(future):
55 # (Future) -> str
56 """helper function for Future.__repr__"""
57 info = [future._state.lower()]
58 if future._state == _FINISHED:
59 if future._exception is not None:
60 info.append('exception={!r}'.format(future._exception))
64 result = reprlib.repr(future._result)
66 if future._callbacks:
67 info.append(_format_callbacks(future._callbacks))
68 if future._source_traceback:
69 frame = future._source_traceback[-1]