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

Support generic for #[napi] #2071

Open
hyf0 opened this issue Apr 29, 2024 · 0 comments
Open

Support generic for #[napi] #2071

hyf0 opened this issue Apr 29, 2024 · 0 comments

Comments

@hyf0
Copy link
Contributor

hyf0 commented Apr 29, 2024

We want to reuse the same napi struct holding threadsafe functions both in main thread and worker environments. However,
threadsafe functions seems can't not be WEAK in worker threads. We need a generic to control whether to enable weak or not.

Related:

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

1 participant