ipc-promise icon indicating copy to clipboard operation
ipc-promise copied to clipboard

Handle multiple arguments

Open pikanezi opened this issue 8 years ago • 2 comments

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.

pikanezi avatar Feb 21 '17 14:02 pikanezi

Hi, @pikanezi.

It's good idea. But ipc-promise is return Promise, I think interface similar to Promise.

sasaplus1 avatar Feb 21 '17 15:02 sasaplus1

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.

sasaplus1 avatar Feb 22 '17 07:02 sasaplus1