Skip to content

Commit

Permalink
Merge pull request kriskowal#321 from CGamesPlay/master
Browse files Browse the repository at this point in the history
Add clarification regarding Node.js CPS to README.md
  • Loading branch information
kriskowal committed Jun 21, 2013
2 parents 7c13851 + 51bfa9c commit 714a1f0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -684,9 +684,10 @@ return Q.fcall(function () {
### Adapting Node

If you're working with functions that make use of the Node.js callback pattern,
Q provides a few useful utility functions for converting between them. The
most straightforward are probably `Q.nfcall` and `Q.nfapply` ("Node function
call/apply") for calling Node.js-style functions and getting back a promise:
where callbacks are in the form of `function(err, result)`, Q provides a few
useful utility functions for converting between them. The most straightforward
are probably `Q.nfcall` and `Q.nfapply` ("Node function call/apply") for calling
Node.js-style functions and getting back a promise:

```javascript
return Q.nfcall(FS.readFile, "foo.txt", "utf-8");
Expand Down

0 comments on commit 714a1f0

Please sign in to comment.