Skip to content

Commit

Permalink
doc: document napi_finalize() signature
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
cjihrig authored and MylesBorins committed Apr 16, 2018
1 parent bd032a1 commit 831de61
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/api/n-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,12 @@ must provide a function satisfying the following signature which would get
called upon the object's collection. Currently, `napi_finalize` can be used for
finding out when objects that have external data are collected.
```C
typedef void (*napi_finalize)(napi_env env,
void* finalize_data,
void* finalize_hint);
```


#### napi_async_execute_callback
Function pointer used with functions that support asynchronous
Expand Down

0 comments on commit 831de61

Please sign in to comment.