Skip to content

Commit

Permalink
doc: update process.send() signature
Browse files Browse the repository at this point in the history
This commit brings the process.send() signature into sync with
the child_process.send() documentation. Specifically, this commit
adds the callback argument and return type to the docs.

PR-URL: #5284
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
cjihrig authored and rvagg committed Feb 18, 2016
1 parent f5cc047 commit 48fa6f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/api/process.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,8 @@ relied upon to exist.

* `message` {Object}
* `sendHandle` {Handle object}
* `callback` {Function}
* Return: {Boolean}

When Node.js is spawned with an IPC channel attached, it can send messages to its
parent process using `process.send()`. Each will be received as a
Expand Down

0 comments on commit 48fa6f6

Please sign in to comment.