app: clarify documentation of app.Main()

Signed-off-by: Greg Pomerantz <gmp.gio@wow.st>
This commit is contained in:
Greg Pomerantz
2019-12-16 09:16:37 -05:00
committed by Elias Naur
parent e76726d4f7
commit 8a4d0007f3
+1 -1
View File
@@ -39,7 +39,7 @@ Main
The Main function must be called from a program's main function, to hand over The Main function must be called from a program's main function, to hand over
control of the main thread to operating systems that need it. control of the main thread to operating systems that need it.
Because Main is also blocking, the event loop of a Window must run in a goroutine. Because Main is also blocking on some platforms, the event loop of a Window must run in a goroutine.
For example, to display a blank but otherwise functional window: For example, to display a blank but otherwise functional window: