Skip to content
This repository was archived by the owner on Jan 26, 2022. It is now read-only.
This repository was archived by the owner on Jan 26, 2022. It is now read-only.

Add some example for the practical usage ? #135

@qiulang

Description

@qiulang

Hi I know MDN has examples of using for-await-of but to me, those examples are not compelling enough to convince me using for-await-of. I just can not think of a scenario that I have an array of promises that I need to resolve them one by one.

I get the feeling that maybe it is like some syntactic sugar that without it the codes would become unnecessary complicated, but only this time I don't see that happen (yet).

I asked the same question at SO https://stackoverflow.com/questions/67103606/some-practical-example-of-asynchronous-iterationfor-await-of-in-action

But no one answers it and my question was even down-voted. So I open an issue here hoping someone may answer my question.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions