mirror of
https://github.com/nodejs/node.git
synced 2025-04-30 07:19:19 +00:00

Sometimes addons need to perform cleanup actions, for example closing libuv handles or waiting for requests to finish, that cannot be performed synchronously. Add C++ API and N-API functions that allow providing such asynchronous cleanup hooks. Fixes: https://github.com/nodejs/node/issues/34567 PR-URL: https://github.com/nodejs/node/pull/34572 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
10 lines
150 B
Python
10 lines
150 B
Python
{
|
|
'targets': [
|
|
{
|
|
'target_name': 'binding',
|
|
'defines': [ 'V8_DEPRECATION_WARNINGS=1' ],
|
|
'sources': [ 'binding.c' ]
|
|
}
|
|
]
|
|
}
|