Skip to content
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.

Handle multiple arguments #6

Open
pikanezi opened this issue Feb 21, 2017 · 2 comments
Open

Handle multiple arguments #6

pikanezi opened this issue Feb 21, 2017 · 2 comments

Comments

@pikanezi
Copy link

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.

@sasaplus1
Copy link
Owner

Hi, @pikanezi.

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

@sasaplus1
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants