talent-plan icon indicating copy to clipboard operation
talent-plan copied to clipboard

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

Open YangchenYe323 opened this issue 2 years ago • 0 comments

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 avatar Apr 21 '22 23:04 YangchenYe323