effection
Advanced tools
Comparing version 0.4.0-02cddd7 to 0.4.0-7c552ca
@@ -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. | ||
@@ -38,0 +44,0 @@ // this effectively "unsubscribes" to the promise. |
@@ -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. | ||
@@ -35,0 +41,0 @@ // this effectively "unsubscribes" to the promise. |
{ | ||
"name": "effection", | ||
"description": "Effortlessly composable structured concurrency primitive for JavaScript", | ||
"version": "0.4.0-02cddd7", | ||
"version": "0.4.0-7c552ca", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "files": [ |
37857
921