Skip to content

Promise Execution #39

Closed
Closed
@ideadapt

Description

Hi

A promising guide I think!
I found a little mistake in https://github.com/mbeaudru/modern-js-cheatsheet#promises. You say:
a) "So it doesn't have a current state."
b) "When called, the promise body runs".

But, according to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise

a) the promise Object is immediately in pending state after instance creation (also Promise A+ says this)
b) the executor is executed immediately during promise object construction (Promise A+ spec did not say anything about when executor is to be executed)

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