Method Shutdown
Shutdown()
Shutdown an application initialized with Init(string?).
object? Shutdown()
Returns
- object
The result from the last Run<TRunnable>(Func<Exception, bool>?) call, or null if none. Automatically disposes any runnable created by Run<TRunnable>(Func<Exception, bool>?).
Remarks
Shutdown must be called for every call to Init(string?) or Run(Toplevel, Func<Exception, bool>?) to ensure all resources are cleaned up (Disposed) and terminal settings are restored.
When used in a fluent chain with Run<TRunnable>(Func<Exception, bool>?), this method automatically disposes the runnable instance and extracts its result for return.
Supports fluent API: var result = Application.Create().Init().Run<MyView>().Shutdown() as MyResultType