Skip to content

Commit

Permalink
Update README - Adapting node
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Patterson committed Jun 21, 2013
1 parent 7c13851 commit 51bfa9c
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 51bfa9c

Please sign in to comment.