proback.js
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -5,2 +5,12 @@ module.exports = { | ||
}, | ||
until: function ( fn, ms = 100 ) { | ||
return new Promise(resolve => { | ||
let pingInterval = setInterval( function () { | ||
if ( fn() ) { | ||
clearInterval( pingInterval ) | ||
resolve() | ||
} | ||
}, ms ) | ||
} ) | ||
}, | ||
performer: function (promise, callback, resolve, reject) { | ||
@@ -7,0 +17,0 @@ promise |
{ | ||
"name": "proback.js", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Tiny libary to aid Promise/Callback dual API design", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14241
330