Event IsRunningChanged
Raised after IsRunning has changed (after Begin(IRunnable) or End(SessionToken) has updated the SessionStack).
event EventHandler<EventArgs<bool>>? IsRunningChanged
Returns
- EventHandler<EventArgs<bool>>
- Raised after has changed (after or has updated the ).
Remarks
Subscribe to this event to perform post-state-change logic. When Value is true, the runnable has started and is on the stack. When false, the runnable has stopped; its token has been removed from the stack, unless it ended beneath the top, in which case the token stays on the stack until the sessions above it end.
This event follows the Terminal.Gui Cancellable Work Pattern (CWP).