Sign in
apache
/
cordova-blackberry
/
refs/tags/v2.2.0.10
/
.
/
node_modules
/
zip
/
node_modules
/
q
/
examples
/
delay.js
blob: 6871f95ab63a38166e364c36946faa2333cbefc2 [
file
] [
log
] [
blame
]
var
Q
=
require
(
"q"
);
var
delay
=
function
(
delay
)
{
var
d
=
Q
.
defer
();
setTimeout
(
d
.
resolve
,
delay
);
return
d
.
promise
;
};
Q
.
when
(
delay
(
1000
),
function
()
{
console
.
log
(
'Hello, World!'
);
});