Skip to content

ServiceKey

Defined in: src/discovery/ServiceKey.ts:6

Named, type-tagged lookup handle for the Receptionist. Two ServiceKeys compare equal iff their id strings match — the type parameter is a compile-time marker used to tighten inferred ActorRef types on lookup.

TMsg = unknown

new ServiceKey<TMsg>(id): ServiceKey<TMsg>

Defined in: src/discovery/ServiceKey.ts:10

string

ServiceKey<TMsg>

readonly _msg: TMsg

Defined in: src/discovery/ServiceKey.ts:8

Phantom field — retains T so inference can round-trip through the key.


readonly id: string

Defined in: src/discovery/ServiceKey.ts:10

equals(other): boolean

Defined in: src/discovery/ServiceKey.ts:14

ServiceKey

boolean


toString(): string

Defined in: src/discovery/ServiceKey.ts:15

string


static of<T>(id): ServiceKey<T>

Defined in: src/discovery/ServiceKey.ts:12

T

string

ServiceKey<T>