stop

abstract fun stop()

Stops the thread if isActive is true; otherwise, it does nothing.