Table of Contents

Event IsRunningChanged

Namespace
Terminal.Gui.Views
Assembly
Terminal.Gui.dll

Raised after IsRunning has changed (after Begin(IRunnable) or End(SessionToken) has updated the SessionStack).

public event EventHandler<EventArgs<bool>>? IsRunningChanged

Returns

EventHandler<EventArgs<bool>>
Raised after has changed (after or has updated the ).
Implements

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).