Skip to content

doc: clarifying thread safe function references

Rodrigo Muino Tomonari requested to merge github/fork/legendecas/doc-tsfn into master

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

Merge request reports

Loading