Hacker Newsnew | past | comments | ask | show | jobs | submit | tarasm's commentslogin

JavaScript has async/await, but it still lacks structured concurrency.

That gap shows up as ad-hoc cancellation, fragile cleanup, and async code that no longer behaves like synchronous code once things get even slightly complex.

This post argues that the missing piece isn’t a heavier abstraction, but a small runtime polyfill for structured concurrency: scoped lifetimes, parent/child tasks, and guaranteed cleanup.

Is JavaScript ready for structured concurrency?


Here is an example of using Effection with React to build a sophisticated loader https://github.com/taras/effection-react-loadingspinner


I think most developers don't know what Structured Concurrency is it's quickly growing in popularity. It's now available in Kotlin, Java, Scala, GoLang and Python.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: