Thread.isDaemon

Sets 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.

  1. bool isDaemon [@property getter]
  2. bool isDaemon [@property setter]
    class Thread
    final @property
    void
    isDaemon
    @safe @nogc
    (
    bool val
    )

Parameters

val
Type: bool

The new daemon status for this thread.

Suggestion Box / Bug Report