Guilherme Souza (2015-04-05T16:42:56.000Z)
d at domenic.me (2015-04-14T22:23:40.271Z)
There is no "correct" way, it depends on the consumer logic. The for-of construction, for instance, ignores the value when {done: true}. While `x = yield* y` delegation store the returned value in `x`. See related discussion: https://esdiscuss.org/topic/proposal-generator-returning-a-value-should-throw-syntaxerror