MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / has_next

Method has_next

tensorpack/utils/concurrency.py:303–306  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

301 self.data.insert(idx, val)
302
303 def has_next(self):
304 if len(self.ranks) == 0:
305 return False
306 return self.ranks[0] == self.wait_for
307
308 def get(self):
309 assert self.has_next()

Callers 2

getMethod · 0.95
runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected