@krzysztofsztompka/garch
    Preparing search index...

    Type Alias PoolWorker

    One worker as the pool drives it, whatever its runtime.

    type PoolWorker = {
        hold?(): void;
        post(message: { job: JobName; request: unknown }): void;
        release?(): void;
        terminate(): unknown;
    }
    Index
    • Busy: keep the process alive (worker threads); idle: let it exit. Optional.

      Returns void

    post

    • post(message: { job: JobName; request: unknown }): void

      Hands the worker one job.

      Parameters

      • message: { job: JobName; request: unknown }

      Returns void

    • Idle again: the worker no longer keeps the process alive. Optional.

      Returns void

    • Stops the worker, whatever it is running.

      Returns unknown