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

Method daemon

Lib/threading.py:1189–1201  ·  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 created i

(self)

Source from the content-addressed store, hash-verified

1187
1188 @property
1189 def daemon(self):
1190 """A boolean value indicating whether this thread is a daemon thread.
1191
1192 This must be set before start() is called, otherwise RuntimeError is
1193 raised. Its initial value is inherited from the creating thread; the
1194 main thread is not a daemon thread and therefore all threads created in
1195 the main thread default to daemon = False.
1196
1197 The entire Python program exits when only daemon threads are left.
1198
1199 """
1200 assert self._initialized, "Thread.__init__() not called"
1201 return self._daemonic
1202
1203 @daemon.setter
1204 def daemon(self, daemonic):

Callers

nothing calls this directly

Calls 1

is_setMethod · 0.45

Tested by

no test coverage detected