Skip to content

Commit dccef8b

Browse files
committed
Merge pull request #49 from Medium/nick-readme
bump package and readme
2 parents f619e95 + 4945ced commit dccef8b

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,19 @@ Q.nfcall(fs.writeFile, '/tmp/myFile', 'content')
268268
})
269269
```
270270

271+
### `.spread()` for arrays of promises
272+
273+
``()`` can be used to convert node-style callbacks into promises:
274+
275+
```javascript
276+
Q.nfcall(function () {
277+
return ['a', Q.resolve('b')]
278+
})
279+
.spread(function (a, b) {
280+
// ...
281+
})
282+
```
283+
271284

272285
Contributing
273286
------------

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "kew",
33
"description": "a lightweight promise library for node",
4-
"version": "0.5.0",
4+
"version": "0.6.0",
55
"homepage": "https://github.com/Medium/kew",
66
"authors": [
77
"Jeremy Stanley <[email protected]> (https://github.com/azulus)",

0 commit comments

Comments
 (0)