MCPcopy Index your code
hub / github.com/RustPython/RustPython / __await__

Method __await__

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

doneMethod · 0.95
resultMethod · 0.95

Tested by

no test coverage detected