Function Thread.isActive

Returns true if this Thread is currently active. An active Thread cannot start work on a new method but can be joined with waitToFinish.

bool isActive() nothrow @nogc const;