ThreadBase.isDaemon
bool isDaemon() @property @safe @nogcGets the daemon status for this thread. While the runtime will wait for all normal threads to complete before tearing down the process, daemon threads are effectively ignored and thus will not prevent the process from terminating. In effect, daemon threads will be terminated automatically by the OS when the process exits.
Returns
true if this is a daemon thread.
void isDaemon(bool val) @property @safe @nogcSets the daemon status for this thread. While the runtime will wait for all normal threads to complete before tearing down the process, daemon threads are effectively ignored and thus will not prevent the process from terminating. In effect, daemon threads will be terminated automatically by the OS when the process exits.
Parameters
val | The new daemon status for this thread. |