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
/
runasync.js
13 lines
(10 loc)
•
215 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict'
var
postpone =
require
(
'../index'
); postpone.
runasync
(
1000
,
function
(
) {
console
.
log
(
'1: '
+ postpone.
now
()); },
function
(
) {
console
.
log
(
'2: '
+ postpone.
now
()); } );