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

Method __eager_start

Lib/asyncio/tasks.py:247–264  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

245 return self._num_cancels_requested
246
247 def __eager_start(self):
248 prev_task = _py_swap_current_task(self._loop, self)
249 try:
250 _py_register_eager_task(self)
251 try:
252 self._context.run(self.__step_run_and_handle_result, None)
253 finally:
254 _py_unregister_eager_task(self)
255 finally:
256 try:
257 curtask = _py_swap_current_task(self._loop, prev_task)
258 assert curtask is self
259 finally:
260 if self.done():
261 self._coro = None
262 self = None # Needed to break cycles when an exception occurs.
263 else:
264 _py_register_task(self)
265
266 def __step(self, exc=None):
267 if self.done():

Callers 1

__init__Method · 0.95

Calls 2

doneMethod · 0.95
runMethod · 0.45

Tested by

no test coverage detected