p-immediate
Advanced tools
Comparing version 3.1.0 to 3.2.0
'use strict'; | ||
const pImmediate = () => new Promise(resolve => { | ||
setImmediate(resolve); | ||
if (typeof setImmediate === 'function') { | ||
setImmediate(resolve); | ||
} else { | ||
setTimeout(resolve); | ||
} | ||
}); | ||
@@ -6,0 +10,0 @@ |
{ | ||
"name": "p-immediate", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"description": "Returns a promise resolved in the next event loop - think `setImmediate()`", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -1,2 +0,2 @@ | ||
# p-immediate [![Build Status](https://travis-ci.org/sindresorhus/p-immediate.svg?branch=master)](https://travis-ci.org/sindresorhus/p-immediate) | ||
# p-immediate | ||
@@ -3,0 +3,0 @@ > Returns a promise resolved in the next event loop - think [`setImmediate()`](https://nodejs.org/api/timers.html#timers_setimmediate_callback_arg) |
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
31
3675