Skip to content

Commit fffd8f5

Browse files
cjihrigaddaleax
authored andcommitted
doc: document napi_finalize() signature
Refs: #14138 PR-URL: #14230 Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent 19a0e06 commit fffd8f5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/api/n-api.md

+6
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,12 @@ must provide a function satisfying the following signature which would get
181181
called upon the object's collection. Currently, `napi_finalize` can be used for
182182
finding out when objects that have external data are collected.
183183
184+
```C
185+
typedef void (*napi_finalize)(napi_env env,
186+
void* finalize_data,
187+
void* finalize_hint);
188+
```
189+
184190

185191
#### napi_async_execute_callback
186192
Function pointer used with functions that support asynchronous

0 commit comments

Comments
 (0)