+ readonly taskFunctionsProperties?: TaskFunctionProperties[]
+ /**
+ * Task performance.
+ */
+ readonly taskPerformance?: TaskPerformance
+ /**
+ * Worker error.
+ */
+ readonly workerError?: WorkerError<ErrorData>
+ /**
+ * Worker id.
+ */
+ readonly workerId?: number
+}
+
+/**
+ * An object holding the task execution response promise resolve/reject callbacks.
+ * @typeParam Response - Type of execution response. This can only be structured-cloneable data.
+ * @internal
+ */
+export interface PromiseResponseWrapper<Response = unknown> {
+ /**
+ * The asynchronous resource used to track the task execution.
+ */
+ readonly asyncResource?: AsyncResource
+ /**
+ * Reject callback to reject the promise.
+ */
+ readonly reject: (reason?: unknown) => void
+ /**
+ * Resolve callback to fulfill the promise.
+ */
+ readonly resolve: (value: PromiseLike<Response> | Response) => void
+ /**
+ * The worker node key executing the task.
+ */
+ readonly workerNodeKey: number