]> Sergey Matveev's repositories - btrtrc.git/blobdiff - internal/chansync/broadcast-cond.go.go
Apply next request state asynchronously
[btrtrc.git] / internal / chansync / broadcast-cond.go.go
index 9b8906920da1900d58d4a899534f3f0241e17284..6d96d3c4e6e02ab6707e7c82c1a3ae0796b60400 100644 (file)
@@ -22,7 +22,8 @@ func (me *BroadcastCond) Broadcast() {
 }
 
 // Should be called before releasing locks on resources that might trigger subsequent Broadcasts.
-func (me *BroadcastCond) WaitChan() <-chan struct{} {
+// The channel is closed when the condition changes.
+func (me *BroadcastCond) Signaled() Signaled {
        me.mu.Lock()
        defer me.mu.Unlock()
        if me.ch == nil {