variable / @typed/fx/RefHashRing

remove

Remove a node from the HashRing.

Package version
2.0.0-beta.7
Category
State updates
Since
1.18.0

Import

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

Signatures

export declare const remove: {
    <A extends PrimaryKey.PrimaryKey>(node: A): <E, R>(ref: RefHashRing<A, E, R>) => Effect.Effect<HashRing.HashRing<A>, E, R>;
    <A extends PrimaryKey.PrimaryKey, E, R>(ref: RefHashRing<A, E, R>, node: A): Effect.Effect<HashRing.HashRing<A>, E, R>;
};

Why

Applies remove to the committed hash ring value and publishes only the result, preserving its element order and equality rules.

Ownership and lifetime

Running remove performs one serialized hash ring transition and resolves with its committed value. It acquires no resource; failures and services remain those of the source ref.

Other public imports

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

Source