-
Notifications
You must be signed in to change notification settings - Fork 34
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
Calling Stop on a stopped consumer blocks #29
Comments
Kinsumer is designed to be called from a single go routine, so you shouldn't have to call |
The lib doesn't accept a go func() {
select {
case <-ctx.Done():
k.Stop()
}
}() But I also had a |
I guess the best way to fix this problem would be to accept a context so we can cancel the job. |
The title says pretty much all. The fix is not obvious though since it is using a blocking channel internally.
The text was updated successfully, but these errors were encountered: