UNPKG
offshore
Version:
latest (1.0.4)
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.1.1
0.1.0
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
An ORM for Node.js
github.com/Atlantis-Software/offshore
Atlantis-Software/offshore
offshore
/
lib
/
offshore
/
utils
/
defer.js
17 lines
(13 loc)
•
281 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
var
Promise
=
require
(
'bluebird'
);
module
.
exports
=
function
defer
(
) {
var
resolve, reject;
var
promise =
new
Promise
(
function
(
) { resolve =
arguments
[
0
]; reject =
arguments
[
1
]; });
return
{
resolve
: resolve,
reject
: reject,
promise
: promise }; };