MCPcopy Create free account
hub / github.com/apache/cassandra-python-driver / add_timer

Method add_timer

cassandra/io/asyncorereactor.py:275–281  ·  view source on GitHub ↗
(self, timer)

Source from the content-addressed store, hash-verified

273 pass
274
275 def add_timer(self, timer):
276 self._timers.add_timer(timer)
277
278 # This function is called from a different thread than the event loop
279 # thread, so for this call to be thread safe, we must wake up the loop
280 # in case it's stuck at a select
281 self.wake_loop()
282
283 def _cleanup(self):
284 global _dispatcher_map

Callers 2

create_timerMethod · 0.45
__init__Method · 0.45

Calls 1

wake_loopMethod · 0.95

Tested by

no test coverage detected