public readonly property stopRequested as Boolean
Returns whether cooperative stopping was requested.
if worker.stopRequested: print("stopping")