JavaScript HSM API Dinamo
    Preparing search index...

    Status of an individual session within a pool.

    interface SessionInfo {
        state: "idle" | "borrowed";
        idleForMs: number | null;
    }
    Index
    state: "idle" | "borrowed"

    "idle" if available for borrowing, "borrowed" if currently borrowed by a live handle.

    idleForMs: number | null

    Milliseconds since the last return to the pool; null if it has not yet been returned (newly created session or still borrowed).