Skip to content

Context parameter on thread safe function callback #653

@legendecas

Description

@legendecas

Currently Napi::ThreadSafeFunction accepts a type implementing void operator()(Napi::Env env, Function jsCallback, DataType* data). It would be hard to retrieve the initial context parameter on Napi::ThreadSafeFunction::New since there is only one parameter DataType* data or we have to wrap the data with a reference to context again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions