Merge pull request '(Mostly) under the hoood improvements' (#3) from fix-x-concurrency into main

Reviewed-on: #3
This commit is contained in:
Sasha Koshka 2022-11-17 18:33:36 +00:00
commit 19b744250f
12 changed files with 396 additions and 322 deletions

View File

@ -10,12 +10,12 @@ type Application struct {
icons []image.Image icons []image.Image
backend Backend backend Backend
config Config config Config
callbackManager CallbackManager
} }
// Run initializes the application, starts it, and then returns a channel that // Run initializes the application, starts it, and then returns a channel that
// broadcasts events. If no suitable backend can be found, an error is returned. // broadcasts events. If no suitable backend can be found, an error is returned.
func (application *Application) Run () ( func (application *Application) Run () (
channel chan(Event),
err error, err error,
) { ) {
// default values for certain parameters // default values for certain parameters