doc: clarifying thread safe function references
Fixes: https://github.com/nodejs/node/issues/25341
Clarifying that neither napi_ref_threadsafe_function
nor napi_unref_threadsafe_function
marks the thread-safe functions to be able to be destroyed or prevent them from been destroyed.
initial_thread_count
acts as same as calling napi_acquire_threadsafe_function
multiple times.
Also, adding small titles in the chapter "Asynchronous Thread-safe Function Calls" to make it easier to read such a large section.
Checklist
-
documentation is changed or added -
commit message follows commit guidelines