Skip to content

Commit

Permalink
Fix send async comments (#254)
Browse files Browse the repository at this point in the history
* Fix send async comments

Signed-off-by: xiaolong.ran <rxl@apache.org>

* fix a little

Signed-off-by: xiaolong.ran <rxl@apache.org>

* fix a little

Signed-off-by: xiaolong.ran <rxl@apache.org>

* fix comments

Signed-off-by: xiaolong.ran <rxl@apache.org>
  • Loading branch information
wolfstudy committed May 18, 2020
1 parent bc647c6 commit 77f0806
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pulsar/producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ type Producer interface {
Send(context.Context, *ProducerMessage) (MessageID, error)

// SendAsync a message in asynchronous mode
// This call is blocked when the `event channel` becomes full (default: 10) or the
// `maxPendingMessages` becomes full (default: 1000)
// The callback will report back the message being published and
// the eventual error in publishing
SendAsync(context.Context, *ProducerMessage, func(MessageID, *ProducerMessage, error))
Expand Down

0 comments on commit 77f0806

Please sign in to comment.