Skip to content

Confused about the doc on yield generator #320

@narychen

Description

@narychen

"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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions