node-postpone
Advanced tools
+4
-4
@@ -24,5 +24,5 @@ 'use strict' | ||
| runasync: function(msec, fn, cb) { | ||
| setTimeout(function() { | ||
| self.wait(0, function() { | ||
| fn(); | ||
| }, 0); | ||
| }); | ||
@@ -38,3 +38,3 @@ self.wait(msec, function() { | ||
| runsync: function(msec, fn, cb) { | ||
| setTimeout(function() { | ||
| self.wait(0, function() { | ||
| fn(); | ||
@@ -45,4 +45,4 @@ | ||
| }); | ||
| }, 0); | ||
| }); | ||
| } | ||
| }; |
+1
-1
| { | ||
| "name": "node-postpone", | ||
| "version": "0.1.1", | ||
| "version": "0.1.2", | ||
| "description": "Postpone function execution", | ||
@@ -5,0 +5,0 @@ "author": { |
+1
-1
@@ -6,3 +6,3 @@ 'use strict' | ||
| describe('postpone', function() { | ||
| describe('node-postpone', function() { | ||
| describe('#now()', function() { | ||
@@ -9,0 +9,0 @@ it('should return timestamp', function() { |
6394
0.05%