ipc-promise
ipc-promise copied to clipboard
Handle multiple arguments
Hello,
Would it be possible to handle multiple arguments like the ipc of electron should do?
See the relevant documentation here and here.
If you are willing to accept a pull request, I could do it, but you should expect some breaking changes.
Hi, @pikanezi.
It's good idea.
But ipc-promise is return Promise, I think interface similar to Promise.
Hi, @JonathanPicques.
resolve(id, created_time);
Can I pass two arguments to Promise.resolve()? I tried pass two arguments to Promise.resolve() in Chrome DevTools Console, it result is below:
> Promise.resolve(100, 200).then(console.log.bind(console));
100
I think Destructuring is better than pass multiple arguments in this module.