Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

N-API Threadsafe call asynchronous javascript callback #22108

Closed
gryor opened this issue Aug 3, 2018 · 1 comment
Closed

N-API Threadsafe call asynchronous javascript callback #22108

gryor opened this issue Aug 3, 2018 · 1 comment

Comments

@gryor
Copy link

gryor commented Aug 3, 2018

Version: v10.8.0
Platform: Linux 4.17.11 x86_64 GNU/Linux

By using the new threadsafe functions I am able to call javascript from another thread and return synchronously a value (e.g. a number) from javascript to another thread.

What is the proper way to call a threadsafe function -> pass arguments to javascript -> await for a result -> return the result -> pass the result back to another thread?

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

No branches or pull requests

2 participants