Skip to content

Commit

Permalink
docs: enhance with-pause-resume-consumer code example
Browse files Browse the repository at this point in the history
  • Loading branch information
A.Samet İleri authored Mar 19, 2024
1 parent 99f63c7 commit 474c038
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/with-pause-resume-consumer/how-it-works.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ defer consumer.Stop()

consumer.Consume()
fmt.Println("Consumer started...!")

// consumer.Pause(), consumer.Resume()
```

If you need to implement Pause & Resume functionality on your own applications, you need to call `Consume`. Because this
Expand Down

0 comments on commit 474c038

Please sign in to comment.