Skip to content

Commit 2cab96b

Browse files
committed
fix: keep TODO comment for learner guidance
1 parent 0efc3c5 commit 2cab96b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

exercises/20_threads/threads3.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ impl Queue {
1515
}
1616

1717
fn send_tx(q: Queue, tx: mpsc::Sender<u32>) {
18+
// TODO: We want to send `tx` to both threads. But currently, it is moved
19+
// into the first thread. How could you solve this problem?
20+
1821
// Destructure the Queue to move first_half and second_half independently
1922
let Queue {
2023
first_half,

0 commit comments

Comments
 (0)