PyDocs

Nav

Concurrent Execution

Thread.daemon

threading

attribute of Thread (source) not WASI
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 in
the main thread default to daemon = False.

The entire Python program exits when only daemon threads are left.
0 Examples
No examples for threading/Thread.daemon.
See Also
No see-alsos for threading/Thread.daemon
0 Notes
No notes for Thread.daemon