MCPcopy Create free account
hub / github.com/cogentcore/core / goStartEventLoop

Method goStartEventLoop

core/renderwindow.go:376–379  ·  view source on GitHub ↗

goStartEventLoop starts the event processing loop for this window in a new goroutine, and returns immediately. Adds to WindowWait wait group so a main thread can wait on that for all windows to close.

()

Source from the content-addressed store, hash-verified

374// goroutine, and returns immediately. Adds to WindowWait wait group so a main
375// thread can wait on that for all windows to close.
376func (w *renderWindow) goStartEventLoop() {
377 windowWait.Add(1)
378 go w.eventLoop()
379}
380
381// todo: fix or remove
382// sendWinFocusEvent sends the RenderWinFocusEvent to widgets

Callers 2

runWindowMethod · 0.80
runDialogMethod · 0.80

Calls 2

eventLoopMethod · 0.95
AddMethod · 0.65

Tested by

no test coverage detected