X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futility-types.ts;h=1f724274150f401833df2dec47750528235a578e;hb=f59e102739e13698f278f1d9d58ab26ed8150442;hp=f330d192296dcc62a5b86a4209126d21798acff6;hpb=3c93feb918b47943d801029fad82a61469e40127;p=poolifier.git diff --git a/src/utility-types.ts b/src/utility-types.ts index f330d192..1f724274 100644 --- a/src/utility-types.ts +++ b/src/utility-types.ts @@ -53,6 +53,10 @@ export interface WorkerStatistics { */ export interface MessageValue extends Task { + /** + * Worker Id. + */ + readonly workerId?: number /** * Kill code. */ @@ -66,9 +70,13 @@ export interface MessageValue */ readonly taskPerformance?: TaskPerformance /** - * Whether to compute the given statistics or not. + * Whether the worker computes the given statistics or not. */ readonly statistics?: WorkerStatistics + /** + * Whether the worker has started or not. + */ + readonly started?: boolean } /**