diff options
author | Gerhard Stöbich <deb2001-github@yahoo.de> | 2022-03-21 23:35:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-21 23:35:05 +0300 |
commit | da399a6c8e6ed60313ba0d5dae24d55a1a7c2c37 (patch) | |
tree | e2dc164943b0fa76ad5d47ea92ba91c215e36240 /typings | |
parent | 87089bf8c63db4696090b52bd8b2d9794ffe83c2 (diff) |
async_hooks: remove destroyed symbol on Promises
Promises are never destroyed manually therefore it's not needed to
attach an object to track if destroy hook was called already.
PR-URL: https://github.com/nodejs/node/pull/42402
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Diffstat (limited to 'typings')
-rw-r--r-- | typings/internalBinding/async_wrap.d.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/typings/internalBinding/async_wrap.d.ts b/typings/internalBinding/async_wrap.d.ts index 9df451e23cb..bfbda3d7ed8 100644 --- a/typings/internalBinding/async_wrap.d.ts +++ b/typings/internalBinding/async_wrap.d.ts @@ -107,7 +107,7 @@ declare function InternalBinding(binding: 'async_wrap'): { promiseAfterHook: InternalAsyncWrapBinding.PromiseHook | undefined, promiseResolveHook: InternalAsyncWrapBinding.PromiseHook | undefined ): void; - registerDestroyHook(promise: Promise<unknown>, asyncId: number, destroyed: { destroyed: boolean }): void; + registerDestroyHook(resource: object, asyncId: number, destroyed?: { destroyed: boolean }): void; async_hook_fields: Uint32Array; async_id_fields: Float64Array; async_ids_stack: Float64Array; |