NakWithDelay negatively acknowledges a message. This tells the server to redeliver the message after the given delay.
(delay time.Duration)
| 370 | // NakWithDelay negatively acknowledges a message. This tells the server |
| 371 | // to redeliver the message after the given delay. |
| 372 | func (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. |