Comment

Comment by theptip

The second usage is a mut borrow and I think would be incompatible with a read only borrow if they were run in parallel.

As the comment eludes to, each spawned thread is implicitly joined if you drop the join handle returned by s::spawn().

So in this case the spawned threads run serially.

parent theptip 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton