#Rustlang async-std TIL! Spawned tasks default to panic=abort, which doesn't work with #[should_panic] tests or catch.
Threads, OTOH, raise the panic at the site of .join() so we can catch them. They don't force a root panic/abort.
The difference makes porting to tasks tricky.
-
-
With the new threadpool design we're able to revisit this decision. I can't give you the in-depth since I didn't design it, but perhaps
@stjepang might. Also if you haven't joined already; we have a very active Discord that's happy to answer questions!https://discord.gg/JvZeVNe -
Gotcha. In my case, we're running pretty expensive computational tasks in parallel and a process abort makes life... difficult. Will follow this closely. To discord!
- 4 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
