subscribe and waitGroup question #1230
Unanswered
tapan-thapa
asked this question in
Q&A
Replies: 1 comment
-
@tapan-thapa, I can see that you're new to go. The question have nothing to do with nats. You will see it closing just as fast with all nats-calls removed, so this is the wrong place for a discussion about it. The actual answer; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Team,
I am beginner in GOLANG and NATS hence help required.
Producer code with Cobra and GIN (Working Fine):
Consumer code with Cobra and GIN (Working Fine)
My query/question is, in my consumer code without using waitGroup, my code was exiting just after subscribe and would like to know if waitGroup is the correct and right way so that subscribe code is not exit and keep getting data as and when sent by publisher/NATS?
Beta Was this translation helpful? Give feedback.
All reactions