Skip to content

yield * 的作用 #106

@mrbone

Description

@mrbone

创建此卡的目的

更加深入的理解 generator

简单的描述

借用 co 库可以看到很多时候 yield 一个 promise 作为一个类似 await 的作用,但是 yield * 的场景和目的。

验收点

输出一篇笔记。

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