UNPKG
@liamcottle/push-receiver
Version:
latest (0.0.4)
0.0.4
0.0.3
0.0.2
0.0.1
A library to subscribe to GCM/FCM and receive notifications within a node process.
@liamcottle/push-receiver
/
src
/
utils
/
timeout
/
index.js
8 lines
(6 loc)
•
127 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
module
.
exports
= { waitFor, };
function
waitFor
(
timeout
) {
return
new
Promise
(
resolve
=>
setTimeout
(resolve, timeout)); }