Skip to content

Commit

Permalink
Merge pull request #1754 from hashicorp/child-exit-ch-comment
Browse files Browse the repository at this point in the history
Add a comment to clarify the usage of child.ExitCh()
  • Loading branch information
roncodingenthusiast committed May 29, 2023
2 parents a926131 + 62ccc06 commit e97a929
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion child/child.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ func New(i *NewInput) (*Child, error) {

// ExitCh returns the current exit channel for this child process. This channel
// may change if the process is restarted, so implementers must not cache this
// value.
// value. To prevent a potential race condition, this function must be invoked
// strictly after child.Start().
func (c *Child) ExitCh() <-chan int {
c.RLock()
defer c.RUnlock()
Expand Down

0 comments on commit e97a929

Please sign in to comment.