We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 715b56e + a7e03a2 commit 54b737aCopy full SHA for 54b737a
com/cond.go
@@ -41,8 +41,8 @@ func (c *Cond) Broadcast() {
41
}
42
43
44
-// Close stops the controller loop, waits for it to finish, and returns an error if any.
45
-// Implements the io.Closer interface.
+// Close stops the controller loop, waits for it to finish, and returns a nil error.
+// Implements the io.Closer interface, hence that return type is required.
46
func (c *Cond) Close() error {
47
c.cancel()
48
<-c.done
0 commit comments