Skip to content

Commit

Permalink
Detail rejection behaviour with concat.
Browse files Browse the repository at this point in the history
  • Loading branch information
mudge committed Jun 20, 2013
1 parent 58f6631 commit edd7bb6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# pacta [![Build Status](https://travis-ci.org/mudge/pacta.png?branch=master)](https://travis-ci.org/mudge/pacta)

```javascript
{ 'pacta': '0.1.0' }
{ 'pacta': '0.2.0' }
```

This is an implementation of [algebraic][Fantasy Land], [Promises/A+][A+]
Expand Down Expand Up @@ -303,6 +303,10 @@ Its type signature is:
concat :: Promise a -> Promise a -> Promise a
```

If either of the original two promises is rejected, the resulting concatenated
promise will also be rejected. Note that only the first rejection will count
as further rejections will be ignored.

See also [`Promise#conjoin`](#promiseconjoinp) and
[`Promise#append`](#promiseappendp).

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"homepage": "https://github.com/mudge/pacta",
"author": "Paul Mucur (http://mudge.name)",
"keywords": ["promises", "monad", "functor", "promises-aplus"],
"version": "0.1.0",
"version": "0.2.0",
"main": "./lib/pacta.js",
"dependencies": {},
"devDependencies": {
Expand Down

0 comments on commit edd7bb6

Please sign in to comment.