Why thread termination is illegal

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

surdeus

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