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

Method push

cassandra/io/libevreactor.py:377–388  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

375 self.close()
376
377 def push(self, data):
378 sabs = self.out_buffer_size
379 if len(data) > sabs:
380 chunks = []
381 for i in range(0, len(data), sabs):
382 chunks.append(data[i:i + sabs])
383 else:
384 chunks = [data]
385
386 with self._deque_lock:
387 self.deque.extend(chunks)
388 _global_loop.notify()

Callers 2

test_pushMethod · 0.45
send_msgMethod · 0.45

Calls 1

notifyMethod · 0.80

Tested by 1

test_pushMethod · 0.36