MCPcopy Index your code
hub / github.com/RustPython/RustPython / isDaemon

Method isDaemon

Lib/threading.py:1213–1222  ·  view source on GitHub ↗

Return whether this thread is a daemon. This method is deprecated, use the daemon attribute instead.

(self)

Source from the content-addressed store, hash-verified

1211 self._daemonic = daemonic
1212
1213 def isDaemon(self):
1214 """Return whether this thread is a daemon.
1215
1216 This method is deprecated, use the daemon attribute instead.
1217
1218 """
1219 import warnings
1220 warnings.warn('isDaemon() is deprecated, get the daemon attribute instead',
1221 DeprecationWarning, stacklevel=2)
1222 return self.daemon
1223
1224 def setDaemon(self, daemonic):
1225 """Set whether this thread is a daemon.

Callers 1

Calls 1

warnMethod · 0.45

Tested by 1