#320·co

Confused about the doc on yield generator

Author: narychenCreated Oct 26, 2017Updated Oct 26, 2017

"Any generator or generator function you can pass into co can be yielded as well. This should generally be avoided as we should be moving towards spec-compliant Promises instead."

Cannot understand why should we generally not yield a generator ? The spec does not say async call should only yield Promises.