Add eslint-plugin-jsdoc (#142)
[poolifier.git] / src / pools / abstract-pool.ts
index 0763f04f9c21869e46b20414f4c998a03ad76bce..6b29669ff624a2ccdc58faebc2faa909125f97a0 100644 (file)
@@ -230,6 +230,8 @@ export abstract class AbstractPool<
    * Choose a worker for the next task.
    *
    * The default implementation uses a round robin algorithm to distribute the load.
+   *
+   * @returns Worker.
    */
   protected chooseWorker (): Worker {
     this.nextWorker =
@@ -253,6 +255,8 @@ export abstract class AbstractPool<
 
   /**
    * Creates a new worker for this pool and sets it up completely.
+   *
+   * @returns New, completely set up worker.
    */
   protected internalNewWorker (): Worker {
     const worker: Worker = this.newWorker()