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

Method NakWithDelay

jetstream/message.go:372–374  ·  view source on GitHub ↗

NakWithDelay negatively acknowledges a message. This tells the server to redeliver the message after the given delay.

(delay time.Duration)

Source from the content-addressed store, hash-verified

370// NakWithDelay negatively acknowledges a message. This tells the server
371// to redeliver the message after the given delay.
372func (m *jetStreamMsg) NakWithDelay(delay time.Duration) error {
373 return m.ackReply(context.Background(), ackNak, false, ackOpts{nakDelay: delay})
374}
375
376// InProgress tells the server that this message is being worked on. It
377// resets the redelivery timer on the server.

Callers

nothing calls this directly

Calls 1

ackReplyMethod · 0.95

Tested by

no test coverage detected