"The easiest way to create a promise is by calling Promise.resolve. This function ensures that the value you give it is wrapped in a promise. If it’s already a promise it is simply returned, and otherwise you get a new promise that immediately finishes with your value as its result."
I'm confused by what's implied by "immediately finishes" here, since further down the text states that a promised value "might appear at some point in the future."
In this paragraph:
"The easiest way to create a promise is by calling Promise.resolve. This function ensures that the value you give it is wrapped in a promise. If it’s already a promise it is simply returned, and otherwise you get a new promise that immediately finishes with your value as its result."
I'm confused by what's implied by "immediately finishes" here, since further down the text states that a promised value "might appear at some point in the future."
Thanks