Skip to content

Commit

Permalink
Added warning about Close() method
Browse files Browse the repository at this point in the history
  • Loading branch information
oxtoacart committed Nov 28, 2014
1 parent 37b3d60 commit 41dc1c2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ func (c *Client) SendKeepAlive() error {
return err
}

// Close closes this client and associated resources
// Close closes this client, its topics and associated resources.
//
// WARNING - Close() closes the out topic channels. Attempts to write to these
// channels after they're closed will result in a panic. So, don't call Close()
// until you're actually 100% finished using this client.
func (c *Client) Close() error {
if !c.hasConnected() {
return notConnectedError
Expand Down

0 comments on commit 41dc1c2

Please sign in to comment.