repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JSONValue can not be used by custom defined interfaces (#201)
[poolifier.git]
/
src
/
pools
/
cluster
/
fixed.ts
diff --git
a/src/pools/cluster/fixed.ts
b/src/pools/cluster/fixed.ts
index 7cc3bf53950870a0ac2ee6e1a99871bfb72e4214..616523cb2885964ef2fee6e4165aaf5dad979000 100644
(file)
--- a/
src/pools/cluster/fixed.ts
+++ b/
src/pools/cluster/fixed.ts
@@
-1,5
+1,5
@@
import { fork, isMaster, setupMaster, Worker } from 'cluster'
import { fork, isMaster, setupMaster, Worker } from 'cluster'
-import type {
JSONValue,
MessageValue } from '../../utility-types'
+import type { MessageValue } from '../../utility-types'
import type { PoolOptions } from '../abstract-pool'
import { AbstractPool } from '../abstract-pool'
import type { PoolOptions } from '../abstract-pool'
import { AbstractPool } from '../abstract-pool'
@@
-23,15
+23,15
@@
export interface ClusterPoolOptions extends PoolOptions<Worker> {
*
* This pool selects the workers in a round robin fashion.
*
*
* This pool selects the workers in a round robin fashion.
*
- * @template Data Type of data sent to the worker.
- * @template Response Type of response of execution.
+ * @template Data Type of data sent to the worker.
This can only be serializable data.
+ * @template Response Type of response of execution.
This can only be serializable data.
*
* @author [Christopher Quadflieg](https://github.com/Shinigami92)
* @since 2.0.0
*/
export class FixedClusterPool<
*
* @author [Christopher Quadflieg](https://github.com/Shinigami92)
* @since 2.0.0
*/
export class FixedClusterPool<
- Data
extends JSONValue = JSONValue
,
- Response
extends JSONValue = JSONValue
+ Data
= unknown
,
+ Response
= unknown
> extends AbstractPool<Worker, Data, Response> {
/**
* Constructs a new poolifier fixed cluster pool.
> extends AbstractPool<Worker, Data, Response> {
/**
* Constructs a new poolifier fixed cluster pool.