public stop() as Void:
Stops the thread logically.
A thread that has never been started becomes terminated without changing activeCount, because it was never included in that count.
before = Thread.activeCount worker = Thread() worker.stop() assert Thread.activeCount == before