MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _run

Method _run

tools/python-3.11.9-amd64/Lib/asyncio/events.py:82–99  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

80 return self._cancelled
81
82 def _run(self):
83 try:
84 self._context.run(self._callback, *self._args)
85 except (SystemExit, KeyboardInterrupt):
86 raise
87 except BaseException as exc:
88 cb = format_helpers._format_callback_source(
89 self._callback, self._args)
90 msg = f'Exception in callback {cb}'
91 context = {
92 'message': msg,
93 'exception': exc,
94 'handle': self,
95 }
96 if self._source_traceback:
97 context['source_traceback'] = self._source_traceback
98 self._loop.call_exception_handler(context)
99 self = None # Needed to break cycles when an exception occurs.
100
101
102class TimerHandle(Handle):

Callers 1

_run_onceMethod · 0.45

Calls 2

runMethod · 0.45

Tested by

no test coverage detected