Syntax for JavaScript Continuations
gliese1337.blogspot.com
gliese1337.blogspot.com
Note that if you assume everything is async, using a synchronous call is no problem. It's going the other way (as illustrated in the post) that is tricky. Maybe we need to make async in general more common/simple?