effection
Advanced tools
Comparing version 0.4.0-9675f2c to 0.4.0-9a7c74e
@@ -33,5 +33,11 @@ 'use strict'; | ||
let noop = x => x; | ||
let noop = x => x; // return values of succeed and fail are deliberately ignored. | ||
// see https://github.com/thefrontside/effection.js/pull/44 | ||
promise.then(value => succeed(value), error => fail(error)); // this execution has passed out of scope, so we don't care | ||
promise.then(value => { | ||
succeed(value); | ||
}, error => { | ||
fail(error); | ||
}); // this execution has passed out of scope, so we don't care | ||
// what happened to the promise, so make the callbacks noops. | ||
@@ -384,3 +390,2 @@ // this effectively "unsubscribes" to the promise. | ||
exports.fork = fork; | ||
exports.promiseOf = promiseOf; | ||
exports.timeout = timeout; |
export { timeout } from "./timeout.js"; | ||
export { fork } from "./fork.js"; | ||
export { promiseOf } from "./promise-of.js"; | ||
export { fork } from "./fork.js"; |
@@ -11,5 +11,11 @@ /** | ||
let noop = x => x; | ||
let noop = x => x; // return values of succeed and fail are deliberately ignored. | ||
// see https://github.com/thefrontside/effection.js/pull/44 | ||
promise.then(value => succeed(value), error => fail(error)); // this execution has passed out of scope, so we don't care | ||
promise.then(value => { | ||
succeed(value); | ||
}, error => { | ||
fail(error); | ||
}); // this execution has passed out of scope, so we don't care | ||
// what happened to the promise, so make the callbacks noops. | ||
@@ -16,0 +22,0 @@ // this effectively "unsubscribes" to the promise. |
@@ -30,5 +30,11 @@ /** | ||
let noop = x => x; | ||
let noop = x => x; // return values of succeed and fail are deliberately ignored. | ||
// see https://github.com/thefrontside/effection.js/pull/44 | ||
promise.then(value => succeed(value), error => fail(error)); // this execution has passed out of scope, so we don't care | ||
promise.then(value => { | ||
succeed(value); | ||
}, error => { | ||
fail(error); | ||
}); // this execution has passed out of scope, so we don't care | ||
// what happened to the promise, so make the callbacks noops. | ||
@@ -338,2 +344,2 @@ // this effectively "unsubscribes" to the promise. | ||
export { fork, promiseOf, timeout }; | ||
export { fork, timeout }; |
{ | ||
"name": "effection", | ||
"description": "Effortlessly composable structured concurrency primitive for JavaScript", | ||
"version": "0.4.0-9675f2c", | ||
"version": "0.4.0-9a7c74e", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "files": [ |
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
37770
919