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

Method Nak

js.go:3669–3671  ·  view source on GitHub ↗

Nak negatively acknowledges a message. This tells the server to redeliver the message. You can configure the number of redeliveries by passing nats.MaxDeliver when you Subscribe. The default is infinite redeliveries.

(opts ...AckOpt)

Source from the content-addressed store, hash-verified

3667// the message. You can configure the number of redeliveries by passing
3668// nats.MaxDeliver when you Subscribe. The default is infinite redeliveries.
3669func (m *Msg) Nak(opts ...AckOpt) error {
3670 return m.ackReply(ackNak, false, opts...)
3671}
3672
3673// Nak negatively acknowledges a message. This tells the server to redeliver
3674// the message after the give `delay` duration. You can configure the number

Callers

nothing calls this directly

Calls 1

ackReplyMethod · 0.95

Tested by

no test coverage detected