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

rust project-5: SharedQueueThreadPool doesn't exit when pool destroyed #411

Open
YangchenYe323 opened this issue Apr 21, 2022 · 0 comments
Labels
type/bug Something isn't working

Comments

@YangchenYe323
Copy link
Contributor

Bug Report

1. What did you do?

Inspecting the source code in SharedQueueThreadPool

2. What did you expect to see?

The loop of function fn run_task(rx: TaskReceiver) should break when rx.0.recv returns an error and return from the function.

3. What did you see instead?

It logs an error message and goes on looping

@YangchenYe323 YangchenYe323 added the type/bug Something isn't working label Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant