MCPcopy Index your code
hub / github.com/python/cpython / __await__

Method __await__

Lib/asyncio/futures.py:296–302  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

294 self.__log_traceback = True
295
296 def __await__(self):
297 if not self.done():
298 self._asyncio_future_blocking = True
299 yield self # This tells Task to wait for completion.
300 if not self.done():
301 raise RuntimeError("await wasn't used with future")
302 return self.result() # May raise too.
303
304 __iter__ = __await__ # make compatible with 'yield from'.
305

Callers

nothing calls this directly

Calls 2

doneMethod · 0.95
resultMethod · 0.95

Tested by

no test coverage detected