Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot easily end the process #23

Open
virtuald opened this issue May 21, 2016 · 0 comments
Open

Cannot easily end the process #23

virtuald opened this issue May 21, 2016 · 0 comments

Comments

@virtuald
Copy link

I've created a consumer and a producer, and had to jump through some hoops to get the process to close. I ended up having to:

  • Create a NIOEventLoopGroup, and add it to an NSQConfig that was passed to each producer/consumer, and had to pass it a thread factory that would create daemon threads (shutdown on the object didn't seem to work)
  • Create an executor service with a similar thread factory that creates daemon threads, and pass that to consumers only (producers shut theirs down properly)

It would be nice if this were either easier to do, or documented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant