MCPcopy
hub / github.com/python-trio/trio / add

Method add

src/trio/_core/_run.py:268–270  ·  view source on GitHub ↗
(self, deadline: float, cancel_scope: CancelScope)

Source from the content-addressed store, hash-verified

266 _active: int = 0
267
268 def add(self, deadline: float, cancel_scope: CancelScope) -> None:
269 heappush(self._heap, (deadline, id(cancel_scope), cancel_scope))
270 self._active += 1
271
272 def remove(self, deadline: float, cancel_scope: CancelScope) -> None:
273 self._active -= 1

Callers 15

waitMethod · 0.80
_wake_waitersMethod · 0.80
socket.pyFile · 0.80
fix_oneFunction · 0.80
attempt_connectFunction · 0.80
sendMethod · 0.80
receiveMethod · 0.80
_refresh_afdMethod · 0.80
abortMethod · 0.80
_pruneMethod · 0.80

Calls

no outgoing calls

Tested by 15

sleeperFunction · 0.64
raiserFunction · 0.64
deliverFunction · 0.64
track_threadsFunction · 0.64
agenFunction · 0.64
hFunction · 0.64
leafFunction · 0.64
mainFunction · 0.64
waiterFunction · 0.64
test_globmethodsFunction · 0.64
test_iterdirFunction · 0.64
external_thread_fnFunction · 0.64