Skip to content

Commit 831de61

Browse files
cjihrigMylesBorins
authored andcommittedApr 16, 2018
doc: document napi_finalize() signature
Refs: #14138 Backport-PR-URL: #19447 PR-URL: #14230 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
1 parent bd032a1 commit 831de61

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)