4 ms·
It's only lexically scoped though, so you don't have much use of them in thread pools and, importantly, async runtimes. Pre-1.0, we used to have JoinHandle<'a>
by klabb3 4y ago
It's only lexically scoped though, so you don't have much use of them in thread pools and, importantly, async runtimes.
Pre-1.0, we used to have JoinHandle<'a> which let you use the borrow checker to its full potential with multiple threads. This is a big practical hurdle today, where mutices are required even for simple cases which don't suffer data races in practice.