3 ms·
The second `logUserName` does return a promise. And yes, you always have to keep inserting `yield` all the way up the stack; you can't "hide" the asynchronicit
by domenicd 14y ago
The second `logUserName` does return a promise.
And yes, you always have to keep inserting `yield` all the way up the stack; you can't "hide" the asynchronicity.
I think this is good. It's important to explicitly call out the asynchronous points of execution in your code. But at the same time, the only transformation you end up needing to do is inserting `yield`.