Skip to content

Commit

Permalink
exsync: export return type of GetChan
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Nov 6, 2024
1 parent 43325ce commit 5767427
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion exsync/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ func NewEvent() *Event {
}
}

type EventChan = <-chan empty

// GetChan returns the channel that will be closed when the event is set.
func (e *Event) GetChan() <-chan empty {
func (e *Event) GetChan() EventChan {
e.l.RLock()
defer e.l.RUnlock()
return e.ch
Expand Down

0 comments on commit 5767427

Please sign in to comment.