aswi2020vldc-gitlab/templetes/node_modules/p-defer/index.js @ 9b6ff40e
1 |
'use strict'; |
---|---|
2 |
module.exports = () => { |
3 |
const ret = {}; |
4 |
|
5 |
ret.promise = new Promise((resolve, reject) => { |
6 |
ret.resolve = resolve; |
7 |
ret.reject = reject; |
8 |
});
|
9 |
|
10 |
return ret; |
11 |
};
|