Table of Contents

Method NakAsync

Namespace
NATS.Client.JetStream
Assembly
NATS.Client.JetStream.dll

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 TimeSpan

Delay redelivery of the message.

cancellationToken CancellationToken

A CancellationToken used to cancel the call.

Returns

ValueTask

A ValueTask representing the async call.

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.