* Enumeration of worker types.
*/
export const WorkerTypes = Object.freeze({
- cluster: 'cluster',
- thread: 'thread'
+ thread: 'thread',
+ cluster: 'cluster'
} as const)
/**
* Resets usage statistics .
*/
readonly resetUsage: () => void
+ /**
+ * Close communication channel.
+ */
+ readonly closeChannel: () => void
/**
* Gets task worker usage statistics.
*/