MCPcopy Index your code
hub / github.com/apache/cassandra-python-driver / __init__

Method __init__

cassandra/io/asyncioreactor.py:86–103  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

84 _write_queue_lock = None
85
86 def __init__(self, *args, **kwargs):
87 Connection.__init__(self, *args, **kwargs)
88
89 self._connect_socket()
90 self._socket.setblocking(0)
91
92 self._write_queue = asyncio.Queue()
93 self._write_queue_lock = asyncio.Lock()
94
95 # see initialize_reactor -- loop is running in a separate thread, so we
96 # have to use a threadsafe call
97 self._read_watcher = asyncio.run_coroutine_threadsafe(
98 self.handle_read(), loop=self._loop
99 )
100 self._write_watcher = asyncio.run_coroutine_threadsafe(
101 self.handle_write(), loop=self._loop
102 )
103 self._send_options_message()
104
105 @classmethod
106 def initialize_reactor(cls):

Callers

nothing calls this directly

Calls 5

handle_readMethod · 0.95
handle_writeMethod · 0.95
_connect_socketMethod · 0.80
_send_options_messageMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected