source:
trip-planner-front/node_modules/p-defer/index.js@
571e0df
Last change on this file since 571e0df was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 177 bytes |
Rev | Line | |
---|---|---|
[6a3a178] | 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 | }; |
Note:
See TracBrowser
for help on using the repository browser.