interface / @typed/fx

RefHashRing.RefHashRing

A RefHashRing is a RefSubject specialized over a HashRing.

Package version
2.0.0-beta.13
Category
State models
Since
1.18.0
Member of
RefHashRing

Import

import { RefHashRing } from "@typed/fx";

Access RefHashRing.RefHashRing through the imported RefHashRing export. Its declaration below describes the member.

This public exposure is a re-export. Its import path is supported; declaration documentation is shared with the other public exposures below.

Signatures

export interface RefHashRing<in out A extends PrimaryKey.PrimaryKey, in out E = never, out R = never> extends RefSubject.RefSubject<HashRing.HashRing<A>, E, R> {
}

Why

Defines hash ring state with the same current-read, pushed-update, and synchronized-write contract as RefSubject.

Ownership and lifetime

RefHashRing is a contract and performs no acquisition. Implementations retain the errors, services, interruption, and Scope requirements expressed by its members.

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source