X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futility-types.ts;h=2035235022d13f49cb39c98e3ea10b91cf7ca8ec;hb=48487131ad37630e3021c3e4feee1b311d8bcd11;hp=a2f3de1c293475ba8089c91a5715508c4e9d52cb;hpb=eb7bf7441d410ca5d9ff9bb08f191ef22399371c;p=poolifier.git diff --git a/src/utility-types.ts b/src/utility-types.ts index a2f3de1c..20352350 100644 --- a/src/utility-types.ts +++ b/src/utility-types.ts @@ -24,6 +24,8 @@ export interface TaskError { /** * Task performance. + * + * @internal */ export interface TaskPerformance { /** @@ -42,6 +44,8 @@ export interface TaskPerformance { /** * Performance statistics computation. + * + * @internal */ export interface WorkerStatistics { runTime: boolean @@ -64,7 +68,7 @@ export interface MessageValue /** * Kill code. */ - readonly kill?: KillBehavior | 1 + readonly kill?: KillBehavior | true /** * Task error. */ @@ -81,6 +85,10 @@ export interface MessageValue * Whether the worker has started or not. */ readonly started?: boolean + /** + * Whether the worker starts or stops its aliveness check. + */ + readonly checkAlive?: boolean } /**