Skip to content

Worker threads and Native addons requiring #25662

@romainmnr

Description

@romainmnr

Hi everyone !

I'm facing a problem using worker thread API and native addon (c++).
My purpose is to call native addon functions in a seperate thread to avoid blocking the main thread.
To do that i need to require my addon in each thread i'm creating but i have the error :

Error: Module did not self-register.

As it's written in the documentation, the worker_thread API doesn't support native addon for now..

My question is do you have an estimation date of this feature ?

Thanks.


Node: 10.15
Addon: c++ / node-gyp / node_addon_api

Metadata

Metadata

Assignees

No one assigned

    Labels

    addonsIssues and PRs related to native addons.questionIssues that look for answers.workerIssues and PRs related to Worker support.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions