mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
app: clarify documentation of app.Main()
Signed-off-by: Greg Pomerantz <gmp.gio@wow.st>
This commit is contained in:
committed by
Elias Naur
parent
e76726d4f7
commit
8a4d0007f3
+1
-1
@@ -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:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user