From: Jérôme Benoit Date: Tue, 22 Aug 2023 21:43:38 +0000 (+0200) Subject: docs: refine worker node code comment X-Git-Tag: v2.6.32~10 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=36f8b943edd527d5111e783b6dce3c4b3f9a53b3;hp=72695f86742c18357f42f000ce6488d545187133;p=poolifier.git docs: refine worker node code comment Signed-off-by: Jérôme Benoit --- diff --git a/src/pools/worker-node.ts b/src/pools/worker-node.ts index b539cabd..359dc26c 100644 --- a/src/pools/worker-node.ts +++ b/src/pools/worker-node.ts @@ -274,8 +274,11 @@ implements IWorkerNode { /** * Executes a function once at a time. + * + * @param fn - The function to execute. + * @param context - The context to bind the function to. + * @returns The function to execute. */ - private once ( // eslint-disable-next-line @typescript-eslint/no-explicit-any fn: (...args: any[]) => void,