X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fworker%2Fabstract-worker.ts;h=ca14133f2dafa7b1d6692f84459bafabb431e935;hb=6ddc8fc5fa990a91503f816001d216a002a3ddae;hp=c00cf08320c261c40d857b7bcb7788a47f9561e7;hpb=0628df39eb1eb95630d08d9759a83c750a34ff7e;p=poolifier.git diff --git a/src/worker/abstract-worker.ts b/src/worker/abstract-worker.ts index c00cf083..ca14133f 100644 --- a/src/worker/abstract-worker.ts +++ b/src/worker/abstract-worker.ts @@ -429,6 +429,7 @@ export abstract class AbstractWorker< * Returns the main worker. * * @returns Reference to the main worker. + * @throws {@link https://nodejs.org/api/errors.html#class-error} If the main worker is not set. */ protected getMainWorker (): MainWorker { if (this.mainWorker == null) {