diff --git a/async-nats/src/jetstream/message.rs b/async-nats/src/jetstream/message.rs index bf3ef6c0d..173000d42 100644 --- a/async-nats/src/jetstream/message.rs +++ b/async-nats/src/jetstream/message.rs @@ -183,6 +183,10 @@ impl Message { } } + pub async fn nack(&self) -> Result<(), Error> { + self.ack_with(AckKind::Nak(None)) + } + /// Acknowledges a message delivery by sending a chosen [AckKind] variant to the server. /// /// # Examples