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

Question : is the native remote sync limitation still there ? #32

Open
mmouterde opened this issue Sep 27, 2017 · 1 comment
Open

Question : is the native remote sync limitation still there ? #32

mmouterde opened this issue Sep 27, 2017 · 1 comment

Comments

@mmouterde
Copy link

I'm not sure but I guess electron/electron#2391 has made the remote async using Promise, hasn't it ?

@repl-chris
Copy link

Yes and no. My understanding is quite shallow, but I would expect this will free up your thread sooner, but it's still not fully asynchronous like electron-remote is. Using the native remote with promises will still make a synchronous call, blocking your calling process until the target process thread picks up your IPC message and begins executing the desired method...at which point it should pretty much immediately return a promise and you become unblocked....so it is much better than it was, however there is still some blocking...and if the target process is slammed (or non responsive) your calling process will still also become unresponsive. Someone please correct me if I'm wrong.

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