From 44ede4eceb513d2f9cf0edf977e0f68f9c1afd0c Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Wed, 6 Mar 2024 21:36:00 +0000 Subject: [PATCH] app: update documentation for Window.Run Window events are no longer asynchronous, so deadlocks are no longer possible when calling Run. Signed-off-by: Elias Naur --- app/window.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/window.go b/app/window.go index 61da5b58..7e88fad8 100644 --- a/app/window.go +++ b/app/window.go @@ -302,10 +302,7 @@ func (w *Window) Option(opts ...Option) { } // Run f in the same thread as the native window event loop, and wait for f to -// return or the window to close. Run is guaranteed not to deadlock if it is -// invoked during the handling of a [ViewEvent], [FrameEvent], -// [StageEvent]; call Run in a separate goroutine to avoid deadlock in all -// other cases. +// return or the window to close. // // Note that most programs should not call Run; configuring a Window with // [CustomRenderer] is a notable exception.