build(deps-dev): apply updates
[poolifier.git] / src / utility-types.ts
index 60ec2f546fe50f2ab14ea96b49b60d839dd12ea0..c7663606cf86afe67f84d6f25d831d567b5bab3f 100644 (file)
@@ -1,6 +1,8 @@
+import type { AsyncResource } from 'node:async_hooks'
 import type { EventLoopUtilization } from 'node:perf_hooks'
 import type { MessagePort, TransferListItem } from 'node:worker_threads'
-import type { KillBehavior } from './worker/worker-options'
+
+import type { KillBehavior } from './worker/worker-options.js'
 
 /**
  * Worker error.
@@ -176,6 +178,10 @@ export interface PromiseResponseWrapper<Response = unknown> {
    * The worker node key executing the task.
    */
   readonly workerNodeKey: number
+  /**
+   * The asynchronous resource used to track the task execution.
+   */
+  readonly asyncResource?: AsyncResource
 }
 
 export type Writable<T> = { -readonly [P in keyof T]: T[P] }