Skip to content

Commit 6b7cccc

Browse files
Lars-Magnus Skogrvagg
Lars-Magnus Skog
authored andcommittedFeb 28, 2019
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: #25002 PR-URL: #22998 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 902b079 commit 6b7cccc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎doc/api/n-api.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4056,8 +4056,8 @@ by the `async_hooks` API.
40564056
- `[in] max_queue_size`: Maximum size of the queue. 0 for no limit.
40574057
- `[in] initial_thread_count`: The initial number of threads, including the main
40584058
thread, which will be making use of this function.
4059-
- `[in] thread_finalize_data`: Data to be passed to `thread_finalize_cb`.
4060-
- `[in] thread_finalize_cb`: Function to call when the
4059+
- `[in] thread_finalize_data`: Optional data to be passed to `thread_finalize_cb`.
4060+
- `[in] thread_finalize_cb`: Optional function to call when the
40614061
`napi_threadsafe_function` is being destroyed.
40624062
- `[in] context`: Optional data to attach to the resulting
40634063
`napi_threadsafe_function`.

0 commit comments

Comments
 (0)
Please sign in to comment.