3 ms·
It's the same but you just write top-down linearly as though all the code is on one stack frame, but the runtime performs the stack continuations when async cal
by linkmotif 9y ago
It's the same but you just write top-down linearly as though all the code is on one stack frame, but the runtime performs the stack continuations when async calls return.
If you're familiar with JS, read about how babel implements ES7's async/await by wrapping promises. And then try it out. It's awesome.