Skip to content

Support generic for #[napi] #2071

@hyf0

Description

@hyf0

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions