assignID(_:)
Assign an Actorid for the passed actor type.
Declaration
func assignID<Act>(_ actorType: Act.Type) -> Self.ActorID where Act : DistributedActor, Self.ActorID == Act.IDDiscussion
This function is invoked by a distributed actor during its initialization, and the returned address value is stored along with it for the time of its lifetime.
The address MUST uniquely identify the actor, and allow resolving it. E.g. if an actor is created under address addr1 then immediately invoking system.resolve(id: addr1, as: Greeter.self) MUST return a reference to the same actor.