Class Runnable<TResult>
Base implementation of IRunnable<TResult> for views that can be run as blocking sessions.
public class Runnable<TResult> : Runnable, IDisposable, ISupportInitializeNotification, ISupportInitialize, IRunnable<TResult>, IRunnable
Type Parameters
TResultThe type of result data returned when the session completes.
- Inheritance
-
Runnable<TResult>
- Implements
-
IRunnable<TResult>
- Derived
- Inherited Members
- Extension Methods
Remarks
Views can derive from this class or implement IRunnable<TResult> directly.
This class provides default implementations of the IRunnable<TResult> interface following the Terminal.Gui Cancellable Work Pattern (CWP).
For views that don't need to return a result, use Runnable instead.
This class inherits from Runnable to avoid code duplication and ensure consistent behavior.
Constructors
- Runnable()
Constructs a new instance of the Runnable<TResult> class.
Properties
- Result
Gets or sets the result data extracted when the session was accepted, or null if not accepted.
Methods
- OnIsRunningChanging(bool, bool)
Override to clear typed result when starting. Called by base RaiseIsRunningChanging(bool, bool) before events are raised.