UNPKG
computed-async-mobx
Version:
alpha (7.0.0)
beta (7.0.1-beta.1)
latest (6.1.0)
7.0.1-beta.1
7.0.0
6.1.0
6.0.0
4.2.1
4.2.0
4.1.1
4.1.0
4.0.1
4.0.0
3.2.0
3.1.0
3.0.0
2.0.0
1.2.0
1.1.0
1.0.0
0.2.0
0.1.1
Define a computed by returning a Promise
computed-async-mobx
/
built
/
test
/
delay.js
8 lines
•
260 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
delay
=
void
0
;
function
delay
(
ms
) {
return
new
Promise
(
function
(
resolve
) {
return
setTimeout
(resolve, ms); }); }
exports
.
delay
= delay;
//# sourceMappingURL=delay.js.map