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

Returning a Promise from 'executeMainProcessMethod' #29

Open
magaya-dev opened this issue Aug 10, 2017 · 1 comment · May be fixed by #30
Open

Returning a Promise from 'executeMainProcessMethod' #29

magaya-dev opened this issue Aug 10, 2017 · 1 comment · May be fixed by #30

Comments

@magaya-dev
Copy link

In execute-js-func.js initializeEvalHandler uses a function executeMainProcessMethod which is not prepared to handle Promises. This causes issues when paired with createProxyForMainProcessModule and working with Promises. There is another method, evalRemoteMethod, which is prepared to handle Promises. Could both cases (calling a renderer and calling the main process) be made to work with Promises?

@queesamor
Copy link

I have the same issue. Pull request #30, when implemented manually, solves this for me. See my note here: #30 (comment)

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

Successfully merging a pull request may close this issue.

1 participant