Callback functions must satisfy the following signature:
typedef void (*napi_threadsafe_function_call_js)(napi_env env, napi_value js_callback, void* context, void* data);
- [in] env: The environment to use for API calls, or NULL if the thread-safe function is being torn down and data may need to be freed.
- [in] context: The optional data with which the thread-safe function was created.
更多内容请参考：Node.js N-API，或者通过 点击对应菜单 进行查看；