nats.docs
nats.docs copied to clipboard
Drain
https://docs.nats.io/using-nats/developer/receiving/drain
number 4 should be changed from Close to Unsubscribe given the implications of Unsubscribe on a durable consumer.
If it were Close then Drain would not delete the durable consumer.
see nats-io/nats.go#874