Comment on Go’s race detector has a mutex blind spotparentComments−pkolaczk1yRust async streams or rayon come very close to what you describe as structured concurrency. Actually much closer than anything I saw in other mainstream languages eg Java or Go.−empath751yRayon is about as pure an example of it as you can imagine. In a lot of cases you just need to replace iter() with par_iter() and it just works.−masklinn1yscoped threads as well, though at a lower level of semantics (and probably less efficiently due to not being on top of a thread pool).−seanw4441yActually much closer than anything I saw in other mainstream languages eg Java or Go.https://github.com/sourcegraph/conc
Comments
Rust async streams or rayon come very close to what you describe as structured concurrency. Actually much closer than anything I saw in other mainstream languages eg Java or Go.
Rayon is about as pure an example of it as you can imagine. In a lot of cases you just need to replace iter() with par_iter() and it just works.
scoped threads as well, though at a lower level of semantics (and probably less efficiently due to not being on top of a thread pool).
https://github.com/sourcegraph/conc