A software development enthusiast [noted the following](https://twitter.com/bodil/status/634822851317645312):

> 
> Current status: compulsively rewriting all my JS after making the intuitive connection between generator functions and monad comprehensions.
> 
> 
> 

I felt like I missed something there. My solution to callback hell was to use something like [`js-csp`](https://github.com/ubolonton/js-csp) (ie a queue). 

My question is: **What is the connection between generator functions and monads in JavaScript?**