Understanding code flow with yield/generators
Seemingly, yield is syntactic sugar for wrapping what it returns to in a callback and assigning the result value appropriately (and at least in the case of co, throwing the error argument to the callback) No, yield is no syntactic sugar. It’s the core syntax element of generators. When that generator is instantiated, you can … Read more