X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futility-types.ts;h=f1b773eb31196c5ca827759bbbf3f70a37fc1ae9;hb=7c8381eb33aaff689afe1944d8643508003cf0b1;hp=9ecf56577f999f4d56a5474917d522f644993749;hpb=f03062dfd67b6a2961b5fee6c7d563613c4001c9;p=poolifier.git diff --git a/src/utility-types.ts b/src/utility-types.ts index 9ecf5657..f1b773eb 100644 --- a/src/utility-types.ts +++ b/src/utility-types.ts @@ -68,7 +68,7 @@ export interface MessageValue /** * Kill code. */ - readonly kill?: KillBehavior | 1 + readonly kill?: KillBehavior | true /** * Task error. */ @@ -82,9 +82,13 @@ export interface MessageValue */ readonly statistics?: WorkerStatistics /** - * Whether the worker has started or not. + * Whether the worker is ready or not. */ - readonly started?: boolean + readonly ready?: boolean + /** + * Whether the worker starts or stops its aliveness check. + */ + readonly checkAlive?: boolean } /**