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

Method __schedule_callbacks

Lib/asyncio/futures.py:167–179  ·  view source on GitHub ↗

Internal: Ask the event loop to call all callbacks. The callbacks are scheduled to be called as soon as possible. Also clears the callback list.

(self)

Source from the content-addressed store, hash-verified

165 return True
166
167 def __schedule_callbacks(self):
168 """Internal: Ask the event loop to call all callbacks.
169
170 The callbacks are scheduled to be called as soon as possible. Also
171 clears the callback list.
172 """
173 callbacks = self._callbacks[:]
174 if not callbacks:
175 return
176
177 self._callbacks[:] = []
178 for callback, ctx in callbacks:
179 self._loop.call_soon(callback, self, context=ctx)
180
181 def cancelled(self):
182 """Return True if the future was cancelled."""

Callers 3

cancelMethod · 0.95
set_resultMethod · 0.95
set_exceptionMethod · 0.95

Calls 1

call_soonMethod · 0.45

Tested by

no test coverage detected