Why thread termination is illegal

⚓ Rust    📅 2025-07-09    👤 surdeus    👁️ 17      

surdeus

Warning

This post was published 166 days ago. The information described in this article may have changed.

Hello, why it would be UB to terminate the thread spawn spawned by thread::spawn (a 'static closure)?

As I see it, it would be equivalent to OS never scheduling the thread, that should be fine.

1 post - 1 participant

Read full topic

🏷️ rust_feed