napiAddAsyncCleanupHook function
- @Available.new(napi: 8)
- @Native<Int32 Function(NapiEnv, Pointer<
NativeFunction< , Pointer<NapiAsyncCleanupHook> >Void> , Pointer<NapiAsyncCleanupHookHandle> )>(NapiEnv, Pointer<NativeFunction<NapiAsyncCleanupHook>>, Pointer<Void>, Pointer<NapiAsyncCleanupHookHandle>)>(symbol: 'napi_add_async_cleanup_hook')
- NapiEnv env,
- Pointer<
NativeFunction< hook,NapiAsyncCleanupHook> > - Pointer<
Void> arg, - Pointer<
NapiAsyncCleanupHookHandle> removeHandle,
Implementation
@Available(napi: 8)
@Native<
Int32 Function(
NapiEnv,
Pointer<NativeFunction<NapiAsyncCleanupHook>>,
Pointer<Void>,
Pointer<NapiAsyncCleanupHookHandle>,
)
>(symbol: 'napi_add_async_cleanup_hook')
external int napiAddAsyncCleanupHook(
NapiEnv env,
Pointer<NativeFunction<NapiAsyncCleanupHook>> hook,
Pointer<Void> arg,
Pointer<NapiAsyncCleanupHookHandle> removeHandle,
);