summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-03-12 21:42:25 -0400
committerPietro Gagliardi <[email protected]>2014-03-12 21:42:25 -0400
commiteb48ed09c3621cd3ac94c1d9cdbe310cf0f44eaf (patch)
tree746e3c5f235412e69ad262e964f82996eb925861 /init.go
parent9beeeb637107e80cfaba8b7f655674cf3b96b821 (diff)
Added a note in ui.Go() about it needing to be run from main().
Diffstat (limited to 'init.go')
-rw-r--r--init.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/init.go b/init.go
index 943d60d..b24e2fc 100644
--- a/init.go
+++ b/init.go
@@ -7,6 +7,8 @@ package ui
// After it returns, you cannot call future ui functions/methods meaningfully.
// (TODO ideally we would want to be able to call ui.MsgBoxError() to report failures to the user, but I would need to figure out how to do this on platforms other than Windows.)
//
+// It is not safe to call ui.Go() in a goroutine. It must be called directly from main().
+//
// This model is undesirable, but Cocoa limitations require it.
func Go(main func()) error {
return ui(main)