2 ms·
> Rust join is actually optional. I was recently surprised to learn that returning from main() with background threads still running is more or less UB in C++,
by oconnor663 2y ago
> Rust join is actually optional.
I was recently surprised to learn that returning from main() with background threads still running is more or less UB in C++, because those threads can race against static destructors: https://www.reddit.com/r/cpp/comments/1fu0y6n/when_a_background_thread_races_against_the https://www.reddit.com/r/cpp/comments/1fu0y6n/when_a_backgro.... C doesn't have this issue, though, as far as I know?