@ms-cloudpack/worker-pool
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -0,6 +1,5 @@ | ||
/** @import { InitializeWorkerOptions } from './types/InitializeWorkerOptions.js' */ | ||
/** @import { WorkerResponse } from './types/WorkerResponse.js' */ | ||
/** @import { WorkerRequest } from './types/WorkerRequest.js' */ | ||
/** | ||
* @typedef {import('./types/WorkerResponse.js').WorkerResponse} WorkerResponse | ||
* @typedef {import('./types/WorkerRequest.js').WorkerRequest} WorkerRequest | ||
*/ | ||
/** | ||
* Helper which should be called by the worker entry file. | ||
@@ -12,5 +11,4 @@ * Initializes event handlers to respond to parent process requests. | ||
*/ | ||
export function initializeWorker(options: import("./types/InitializeWorkerOptions.js").InitializeWorkerOptions): void; | ||
export type WorkerResponse = import("./types/WorkerResponse.js").WorkerResponse; | ||
export type WorkerRequest = import("./types/WorkerRequest.js").WorkerRequest; | ||
export function initializeWorker(options: InitializeWorkerOptions): void; | ||
import type { InitializeWorkerOptions } from './types/InitializeWorkerOptions.js'; | ||
//# sourceMappingURL=initializeWorker.d.ts.map |
// This file is JS because it's used by the test worker entry JS files within this package | ||
import { parentPort } from 'worker_threads'; | ||
import { getRequestString } from './getRequestString.js'; | ||
/** @import { InitializeWorkerOptions } from './types/InitializeWorkerOptions.js' */ | ||
/** @import { WorkerResponse } from './types/WorkerResponse.js' */ | ||
/** @import { WorkerRequest } from './types/WorkerRequest.js' */ | ||
/** | ||
* @typedef {import('./types/WorkerResponse.js').WorkerResponse} WorkerResponse | ||
* @typedef {import('./types/WorkerRequest.js').WorkerRequest} WorkerRequest | ||
*/ | ||
/** | ||
* Helper which should be called by the worker entry file. | ||
@@ -15,4 +14,3 @@ * Initializes event handlers to respond to parent process requests. | ||
*/ | ||
export function initializeWorker( | ||
/** @type {import('./types/InitializeWorkerOptions.js').InitializeWorkerOptions} */ options) { | ||
export function initializeWorker(/** @type {InitializeWorkerOptions} */ options) { | ||
const { methods, beforeEach, afterEach, timeout } = options; | ||
@@ -19,0 +17,0 @@ let /** @type {(WorkerRequest & { startHeap: number; startTime: number }) | undefined} */ pendingRequest; |
{ | ||
"name": "@ms-cloudpack/worker-pool", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "General worker pool helper.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
68137
34
553