【文件属性】:
文件名称:esimorp:由内而外的承诺
文件大小:29KB
文件格式:ZIP
更新时间:2021-05-09 01:26:41
promises cancellation resolvable rejectable cancelable
埃西莫普
由内而外的承诺。
适用于所有开发人员用例的最简单但方便,可解决且可拒绝的承诺。
// The constructor callback is optional.
// If provided, it's exactly the same
// that you would pass to a new Promise.
const promise = new Esimorp ( ) ;
// you can already use the instance
// just like any other Promise
promise
. then ( console . log )
. catch ( console . error ) ;
// ... and whenever it happens ...
promise . resolve ( 'kudos' )
【文件预览】:
esimorp-master
----.travis.yml(130B)
----es5.js(1KB)
----min.js(732B)
----package.json(1KB)
----test()
--------test.js(2KB)
----LICENSE(770B)
----es6.js(595B)
----.npmignore(65B)
----.gitignore(23B)
----README.md(2KB)
----coverage()
--------lcov.info(652B)
--------lcov-report()
--------coverage.json(4KB)