diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2024-08-24 14:48:28 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2024-08-24 14:48:28 -0400 |
| commit | 050f26f34a64689e16fc9d20c9a9dc3f7e43b1d0 (patch) | |
| tree | 91e5122d9fc3975fe76d32c98183213ada1aec9e /event.go | |
| parent | d8743bbc53c8db43151ef89d21264b531bea3d4c (diff) | |
| download | gui-050f26f34a64689e16fc9d20c9a9dc3f7e43b1d0.zip | |
rename MakeEventsChan -> makeEventsChan
Diffstat (limited to 'event.go')
| -rw-r--r-- | event.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -23,7 +23,7 @@ func (r Resize) String() string { return fmt.Sprintf("resize/%d/%d/%d/%d", r.Min.X, r.Min.Y, r.Max.X, r.Max.Y) } -// MakeEventsChan implements a channel of events with an unlimited capacity. It does so +// makeEventsChan implements a channel of events with an unlimited capacity. It does so // by creating a goroutine that queues incoming events. Sending to this channel never blocks // and no events get lost. // @@ -34,7 +34,7 @@ func (r Resize) String() string { // An unlimited capacity channel has its dangers in general, but is completely fine for // the purpose of delivering events. This is because the production of events is fairly // infrequent and should never out-run their consumption in the long term. -func MakeEventsChan() (<-chan Event, chan<- Event) { +func makeEventsChan() (<-chan Event, chan<- Event) { out, in := make(chan Event), make(chan Event) go func() { |