Skip to content
Effect 4.0 is here. One ecosystem. Zero dependencies.

SingletonAddress unstable

The SingletonAddress module models the runtime address assigned to a cluster singleton registration. The address pairs the singleton name with the ShardId selected from that name and its shard group, giving sharding one stable value for registration events, equality, hashing, and local singleton fiber tracking.

1 exports Since v4.0.0 Source

Schemas

Since v4.0.0

Represents the unique address of an singleton within the cluster.

Signature

declare class SingletonAddress extends {
readonly name: string;
readonly shardId: ShardId;
} {
constructor(...args: [props: {
readonly name: string;
readonly shardId: ShardId;
}, options?: MakeOptions]);
readonly "~effect/cluster/SingletonAddress": "~effect/cluster/SingletonAddress";
"~effect/Equal"(that: SingletonAddress): boolean;
"~effect/Hash"(): number;
}