Skip to content

question during translating async/await #1548

Closed
@Violet-Bora-Lee

Description

@Violet-Bora-Lee

Hi, I'm translating http://javascript.info/async-await.

If await gets a non-promise object with .then, it calls that method providing native functions resolve, reject as arguments. Then await waits until one of them is called (in the example above it happens in the line (*)) and then proceeds with the result.

I wonder what native functions mean here. alert and setTimeout? or resolve and reject?

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