ThreadJob
ThreadJob copied to clipboard
Any possibility of adding a script block parameter to respond to the Job.StateChanged event?
Summary of the new feature / enhancement
I was wondering if adding the logic and parameter usage for another script block to handle the job's state change would be possible? This way, the ThreadJob object could call additional functions upon state changes (such as if blocking, stopping, failure or complete were detected).
Proposed technical implementation details (optional)
No response