Created
October 8, 2020 15:56
-
-
Save adityapatnaik/36134bb1b4869d0cd5eaf39ddc173d69 to your computer and use it in GitHub Desktop.
Asynchronous Reply:main.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ipcMain.on('anything-asynchronous', (event, arg) => { | |
console.log("async",arg) // prints "async ping" | |
event.reply('asynchronous-reply', 'pong') | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment