then / promise

Bare bones Promises/A+ implementation
https://www.promisejs.org
MIT License
2.58k stars 312 forks source link

who can tell me that what is the meaning of the code? #153

Closed yolilufei closed 5 years ago

yolilufei commented 5 years ago

image

it seems never work

ForbesLindesay commented 5 years ago

It is used internally for creating promises that we are going to resolve using internal APIs, rather than the public API. e.g. https://github.com/then/promise/blob/44f6d7aee2b89d0173139d140a4d0d8fe51bb7af/src/core.js#L76

yolilufei commented 5 years ago

thanks, i get it