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

Method get

module/Scheduler.py:132–141  ·  view source on GitHub ↗

return element or None

(self)

Source from the content-addressed store, hash-verified

130 self.lock.release()
131
132 def get(self):
133 """ return element or None """
134 self.lock.acquire()
135 try:
136 el = heappop(self.queue)
137 return el
138 except IndexError:
139 return None, None
140 finally:
141 self.lock.release()

Callers 1

workMethod · 0.45

Calls 2

acquireMethod · 0.80
releaseMethod · 0.45

Tested by

no test coverage detected