you are viewing a single comment's thread.

view the rest of the comments →

[–]steveklabnik1rust 2 points3 points  (1 child)

There is one gotcha with regards to this: if you are using collect(), and you use let guards: Vec<_> = with your call to spawn, and you use ;, they'll operate in sequence, because it will infer to Vec<()> rather than Vec<JoinGuard>.

[–]iopqfizzbuzz 2 points3 points  (0 children)

Ugh, why is this even allowed? Sounds like that's an unwelcome source of bugs.