Merge pull request #9883 from electron/ipc-return-value

document the return value of ipcRenderer.sendSync
This commit is contained in:
Kevin Sawicki 2017-06-28 08:03:27 -07:00 committed by GitHub
commit f0ec9c68b0

View file

@ -62,6 +62,8 @@ The main process handles it by listening for `channel` with `ipcMain` module.
* `channel` String * `channel` String
* `...args` any[] * `...args` any[]
Returns `any` - The value sent back by the [`ipcMain`](ipc-main.md) handler.
Send a message to the main process synchronously via `channel`, you can also Send a message to the main process synchronously via `channel`, you can also
send arbitrary arguments. Arguments will be serialized in JSON internally and send arbitrary arguments. Arguments will be serialized in JSON internally and
hence no functions or prototype chain will be included. hence no functions or prototype chain will be included.