MCPcopy Create free account
hub / github.com/MCSLTeam/MCSL2 / hasThread

Method hasThread

MCSL2Lib/utils.py:376–382  ·  view source on GitHub ↗
(cls, name)

Source from the content-addressed store, hash-verified

374
375 @classmethod
376 def hasThread(cls, name) -> bool:
377 rv = cls.threads.get(name, None)
378 if rv is None:
379 return False
380 if not rv.isRunning():
381 return False
382 return True
383
384 def __new__(cls, *args, **kwargs):
385 raise RuntimeError("This class is not allowed to be instantiated.")

Callers 3

registerMethod · 0.80
getThreadMethod · 0.80
closeThreadMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected