MCPcopy Index your code
hub / github.com/dabeaz/python-cookbook / put

Method put

src/12/polling_multiple_thread_queues/pqueue.py:24–26  ·  view source on GitHub ↗
(self, item)

Source from the content-addressed store, hash-verified

22 return self._getsocket.fileno()
23
24 def put(self, item):
25 super().put(item)
26 self._putsocket.send(b'x')
27
28 def get(self):
29 self._getsocket.recv(1)

Callers 3

wrapperFunction · 0.45
sendMethod · 0.45
pqueue.pyFile · 0.45

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected