effection
Advanced tools
Comparing version 0.4.0-aa88a97 to 0.4.0-e68d744
@@ -35,3 +35,7 @@ 'use strict'; | ||
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 +42,0 @@ // this effectively "unsubscribes" to the promise. |
@@ -13,3 +13,7 @@ /** | ||
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 +20,0 @@ // this effectively "unsubscribes" to the promise. |
@@ -32,3 +32,7 @@ /** | ||
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 +39,0 @@ // this effectively "unsubscribes" to the promise. |
{ | ||
"name": "effection", | ||
"description": "Effortlessly composable structured concurrency primitive for JavaScript", | ||
"version": "0.4.0-aa88a97", | ||
"version": "0.4.0-e68d744", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "files": [ |
37456
918