Skip to content

Cannot easily end the process #23

Description

@virtuald

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions