MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / daemon

Method daemon

tools/python-3.11.9-amd64/Lib/threading.py:1207–1219  ·  view source on GitHub ↗

A boolean value indicating whether this thread is a daemon thread. This must be set before start() is called, otherwise RuntimeError is raised. Its initial value is inherited from the creating thread; the main thread is not a daemon thread and therefore all threads creat

(self)

Source from the content-addressed store, hash-verified

1205
1206 @property
1207 def daemon(self):
1208 """A boolean value indicating whether this thread is a daemon thread.
1209
1210 This must be set before start() is called, otherwise RuntimeError is
1211 raised. Its initial value is inherited from the creating thread; the
1212 main thread is not a daemon thread and therefore all threads created in
1213 the main thread default to daemon = False.
1214
1215 The entire Python program exits when only daemon threads are left.
1216
1217 """
1218 assert self._initialized, "Thread.__init__() not called"
1219 return self._daemonic
1220
1221 @daemon.setter
1222 def daemon(self, daemonic):

Callers

nothing calls this directly

Calls 1

is_setMethod · 0.45

Tested by

no test coverage detected