From 35636e9ca34b1050e0597f8cc80fc43822217e3e Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Mon, 19 Aug 2024 22:27:09 -0400 Subject: [PATCH] Add Application.Stop Closes #6 --- application.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application.go b/application.go index 6391b72..fca53d5 100644 --- a/application.go +++ b/application.go @@ -18,6 +18,10 @@ type Application interface { // Init performs the initial setup of the application. This behavior // should return a window if it creates one. Init () (tomo.Window, error) + + // Stop stops the application and does not return until all ongoing + // operations have been completely shut down. + Stop () } // ApplicationURLOpener is an application that can open a URL.