klyn.threading.Thread.stop
method
public stop() as Void:
Description

Stops the thread logically.

A thread that has never been started becomes terminated without changing activeCount, because it was never included in that count.

Example

before = Thread.activeCount worker = Thread() worker.stop() assert Thread.activeCount == before