UNPKG
node-postpone
Version:
latest (0.1.2)
0.1.2
0.1.1
0.1.0
Postpone function execution
github.com/itivanov/node-postpone
itivanov/node-postpone
node-postpone
/
examples
/
wait.js
10 lines
(6 loc)
•
165 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
'use strict'
var
postpone =
require
(
'../index'
);
console
.
log
(
'1: '
+ postpone.
now
()); postpone.
wait
(
1000
,
function
(
) {
console
.
log
(
'2: '
+ postpone.
now
()); });