pingcap/talent-plan

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

YangchenYe323 opened this issue · 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