klyn.threading.Thread.stopRequested
property
public readonly property stopRequested as Boolean
Description

Returns whether cooperative stopping was requested.

Example

if worker.stopRequested: print("stopping")