Skip to content

Commit

Permalink
docs: update Unsubscribe interface comment (#1146)
Browse files Browse the repository at this point in the history
Co-authored-by: ninjazhou <[email protected]>
  • Loading branch information
geniusjoe and ninjazhou authored Jan 2, 2024
1 parent f491e09 commit 3a1a766
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pulsar/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,12 @@ type Consumer interface {
Subscription() string

// Unsubscribe the consumer
//
// Unsubscribing will cause the subscription to be deleted,
// and all the retained data can potentially be deleted based on message retention and ttl policy.
//
// This operation will fail when performed on a shared subscription
// where more than one consumer are currently connected.
Unsubscribe() error

// Receive a single message.
Expand Down

0 comments on commit 3a1a766

Please sign in to comment.