MCPcopy Index your code
hub / github.com/pyload/pyload / put

Method put

module/Scheduler.py:127–130  ·  view source on GitHub ↗
(self, element)

Source from the content-addressed store, hash-verified

125 del self.queue[key]
126
127 def put(self, element):
128 self.lock.acquire()
129 heappush(self.queue, element)
130 self.lock.release()
131
132 def get(self):
133 """ return element or None """

Callers 2

addJobMethod · 0.45
workMethod · 0.45

Calls 2

acquireMethod · 0.80
releaseMethod · 0.45

Tested by

no test coverage detected