From 6b7cccc88aeb91a6e07a29ab296a7d49f80b614b Mon Sep 17 00:00:00 2001 From: Lars-Magnus Skog Date: Fri, 21 Sep 2018 16:17:38 +0200 Subject: [PATCH] doc: fix optional parameters in n-api.md The thread_finalize_data and thread_finalize_cb parameters in napi_create_threadsafe_function are optional. Backport-PR-URL: https://github.com/nodejs/node/pull/25002 PR-URL: https://github.com/nodejs/node/pull/22998 Reviewed-By: James M Snell Reviewed-By: Anna Henningsen --- doc/api/n-api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/n-api.md b/doc/api/n-api.md index 7e7ed9efd3e88a..91368267c42663 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -4056,8 +4056,8 @@ by the `async_hooks` API. - `[in] max_queue_size`: Maximum size of the queue. 0 for no limit. - `[in] initial_thread_count`: The initial number of threads, including the main thread, which will be making use of this function. -- `[in] thread_finalize_data`: Data to be passed to `thread_finalize_cb`. -- `[in] thread_finalize_cb`: Function to call when the +- `[in] thread_finalize_data`: Optional data to be passed to `thread_finalize_cb`. +- `[in] thread_finalize_cb`: Optional function to call when the `napi_threadsafe_function` is being destroyed. - `[in] context`: Optional data to attach to the resulting `napi_threadsafe_function`.