My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more
Real-world use cases for CSP (Communicating Sequential Processes) in JavaScript?

Real-world use cases for CSP (Communicating Sequential Processes) in JavaScript?

Ben Styles's photo
Ben Styles
·Mar 29, 2016

I'm a sucker for trying out new ideas in JS, and have fully jumped on board the ES201X train. I have read about CSP and coroutines in the past (specifically in relation to https://github.com/getify/asynquence) but never really had a go, the syntax was confusing. However, today I came across https://github.com/dvlsg/async-csp, and I can read and understand the syntax and API with great ease. I fully understand how this thing works!

The question is, when and where would this be useful? Can anyone suggest real-world, javascript use cases where CSP and this library would really shine?