@am92/securities-utility
Version:
A utility package for securities applications
22 lines (21 loc) • 1.02 kB
JavaScript
/**
* Defines the structure of constants used to interact with a web worker.
* Each property represents a specific action or lifecycle event for the worker.
* These constants help ensure consistency when managing the worker's lifecycle
* and communication with the main thread.
*
* @interface IWorkerConstantsOptions
*
* @property {string} init - The constant representing the initialization event of the worker.
* This action is used when setting up or preparing the worker for execution.
*
* @property {string} start - The constant representing the start event of the worker.
* This action triggers the worker to begin its task or processing.
*
* @property {string} search - The constant representing the search event for the worker.
* This action is used when the worker is required to perform a search operation.
*
* @property {string} terminate - The constant representing the terminate event of the worker.
* This action signals the worker to stop its execution and clean up resources.
*/
export {};