Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
method AbstractPool.prototype.getWorkerNodeKeyByWorkerId
import { AbstractPool } from "https://deno.land/x/poolifier@v0.3.14/src/mod.ts";

Gets the worker node key given its worker id.

Parameters

workerId: string | undefined
  • The worker id.

Returns

number

The worker node key if the worker id is found in the pool worker nodes, -1 otherwise.