function / @typed/fx/RefHashRing

make

Creates a new RefHashRing from a HashRing, Effect, or Fx.

Package version
2.0.0-beta.7
Category
Constructors
Since
1.18.0

Import

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

Signatures

export declare function make<A extends PrimaryKey.PrimaryKey, E = never, R = never>(initial: HashRing.HashRing<A> | Effect.Effect<HashRing.HashRing<A>, E, R> | Fx.Fx<HashRing.HashRing<A>, E, R>): Effect.Effect<RefHashRing<A, E>, never, R | Scope.Scope>;

Why

Creates hash ring state with equality suited to that Effect data type, so unchanged values do not produce redundant pushed updates.

Ownership and lifetime

The creation Effect requires Scope. It owns initializer acquisition, live source subscriptions, and cleanup; source failures and services stay on reads and pushes.

Other public imports

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

Source