Skip to content

Commit 5767427

Browse files
committed
exsync: export return type of GetChan
1 parent 43325ce commit 5767427

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

exsync/event.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ func NewEvent() *Event {
2828
}
2929
}
3030

31+
type EventChan = <-chan empty
32+
3133
// GetChan returns the channel that will be closed when the event is set.
32-
func (e *Event) GetChan() <-chan empty {
34+
func (e *Event) GetChan() EventChan {
3335
e.l.RLock()
3436
defer e.l.RUnlock()
3537
return e.ch

0 commit comments

Comments
 (0)