MCPcopy Create free account
hub / github.com/ActiveState/code / put

Method put

recipes/Python/578488_Threaded/recipe-578488.py:40–47  ·  view source on GitHub ↗
(self, command, request=True)

Source from the content-addressed store, hash-verified

38 self.close()
39
40 def put(self, command, request=True):
41 with self._lock:
42 deferredResult = Queue.Queue() if request else None
43 if not self._closing:
44 self._out.put((deferredResult, command))
45 elif deferredResult:
46 deferredResult.put(StopIteration())
47 return deferredResult
48
49 def close(self, timeout=None):
50 self._shutdown()

Callers 15

_shutdownMethod · 0.95
recipe-511444.pyFile · 0.45
runMethod · 0.45
executeMethod · 0.45
recipe-284631.pyFile · 0.45
TestUrlFunction · 0.45
runMethod · 0.45
runMethod · 0.45
recipe-578439.pyFile · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected