Method RequestStop
RequestStop(Toplevel?)
Requests that the currently running Session stop. The Session will stop after the current iteration completes.
[Obsolete("The legacy static Application object is going away.")]
public static void RequestStop(Toplevel? top = null)
Parameters
topToplevelThe Toplevel to stop. If null, stops the currently running TopRunnable.
Remarks
This will cause Run(Toplevel, Func<Exception, bool>?) to return.
Calling RequestStop(Toplevel?) is equivalent to setting the Running property on the specified Toplevel to false.