Skip to content

Commit e7be1ed

Browse files
Lars-Magnus Skogtargos
Lars-Magnus Skog
authored andcommitted
doc: fix optional parameters in n-api.md
The thread_finalize_data and thread_finalize_cb parameters in napi_create_threadsafe_function are optional. PR-URL: #22998 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent f6fc7e7 commit e7be1ed

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
@@ -4447,8 +4447,8 @@ by the `async_hooks` API.
44474447
- `[in] max_queue_size`: Maximum size of the queue. `0` for no limit.
44484448
- `[in] initial_thread_count`: The initial number of threads, including the main
44494449
thread, which will be making use of this function.
4450-
- `[in] thread_finalize_data`: Data to be passed to `thread_finalize_cb`.
4451-
- `[in] thread_finalize_cb`: Function to call when the
4450+
- `[in] thread_finalize_data`: Optional data to be passed to `thread_finalize_cb`.
4451+
- `[in] thread_finalize_cb`: Optional function to call when the
44524452
`napi_threadsafe_function` is being destroyed.
44534453
- `[in] context`: Optional data to attach to the resulting
44544454
`napi_threadsafe_function`.

0 commit comments

Comments
 (0)