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.
Type Parameters
Section titled “Type Parameters”TMsg = unknown
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ServiceKey<
TMsg>(id):ServiceKey<TMsg>
Defined in: src/discovery/ServiceKey.ts:10
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”ServiceKey<TMsg>
Properties
Section titled “Properties”
readonly_msg:TMsg
Defined in: src/discovery/ServiceKey.ts:8
Phantom field — retains T so inference can round-trip through the key.
readonlyid:string
Defined in: src/discovery/ServiceKey.ts:10
Methods
Section titled “Methods”equals()
Section titled “equals()”equals(
other):boolean
Defined in: src/discovery/ServiceKey.ts:14
Parameters
Section titled “Parameters”ServiceKey
Returns
Section titled “Returns”boolean
toString()
Section titled “toString()”toString():
string
Defined in: src/discovery/ServiceKey.ts:15
Returns
Section titled “Returns”string
staticof<T>(id):ServiceKey<T>
Defined in: src/discovery/ServiceKey.ts:12
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”ServiceKey<T>