Method NakAsync
NakAsync(AckOpts?, TimeSpan, CancellationToken)
Signals that the message will not be processed now and processing can move onto the next message.
public ValueTask NakAsync(AckOpts? opts = null, TimeSpan delay = default, CancellationToken cancellationToken = default)
Parameters
opts
AckOpts?Ack options.
delay
TimeSpanDelay redelivery of the message.
cancellationToken
CancellationTokenA CancellationToken used to cancel the call.
Returns
Remarks
Messages rejected using -NAK
will be resent by the NATS JetStream server after the configured timeout
or the delay parameter if it's specified.