diff options
Diffstat (limited to 'redo/uitask.go')
| -rw-r--r-- | redo/uitask.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/redo/uitask.go b/redo/uitask.go index 64366c8..12bd0f3 100644 --- a/redo/uitask.go +++ b/redo/uitask.go @@ -44,8 +44,7 @@ func Do(f func()) { // Stop informs package ui that it should stop. // Stop then returns immediately. // Some time after this request is received, Go() will return without performing any final cleanup. -// Stop will not have an effect until any event handlers or dialog boxes presently active return. -// (TODO make sure this is the case for dialog boxes) +// Stop will not have an effect until any event handlers return. func Stop() { // can't send this directly across issuer go func() { @@ -65,9 +64,6 @@ type event struct { lock sync.Mutex } -// do should never be nil -// TODO when writing doc.go, document that setting nil to an event handler ignores the event; if it returns a boolean value, false is returned - func newEvent() *event { return &event{ do: func() bool { |
