function / @typed/fx/RefHashRing

empty

Creates a new empty RefHashRing.

Package version
2.0.0-beta.13
Category
Constructors
Since
1.18.0

Import

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

Signatures

export declare function empty<A extends PrimaryKey.PrimaryKey, E = never, R = never>(options?: {
    readonly baseWeight?: number;
}): Effect.Effect<RefHashRing<A, E>, never, R | Scope.Scope>;

Why

Creates a new empty RefHashRing. The operation remains attached to the RefSubject’s versioned state boundary.

Ownership and lifetime

Running empty 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