Thread Safe function
- napi_create_threadsafe_function
- napi_get_threadsafe_function_context
- napi_call_threadsafe_function
- napi_acquire_threadsafe_function
- napi_release_threadsafe_function
Require pthreads enabled, see how to use multithreading here.
See examples here.