MCPcopy
hub / github.com/nats-io/nats.go / AckSync

Method AckSync

js.go:3662–3664  ·  view source on GitHub ↗

AckSync is the synchronous version of Ack. This indicates successful message processing.

(opts ...AckOpt)

Source from the content-addressed store, hash-verified

3660// AckSync is the synchronous version of Ack. This indicates successful message
3661// processing.
3662func (m *Msg) AckSync(opts ...AckOpt) error {
3663 return m.ackReply(ackAck, true, opts...)
3664}
3665
3666// Nak negatively acknowledges a message. This tells the server to redeliver
3667// the message. You can configure the number of redeliveries by passing

Calls 1

ackReplyMethod · 0.95