Contents

resolve(id:using:)

Resolves the passed in id against the system, returning either a local or remote actor reference.

Declaration

static func resolve(id: Self.ID, using system: Self.ActorSystem) throws -> Self

Parameters

  • id:

    Identity uniquely identifying a, potentially remote, actor in the system

  • system:

    system which should be used to resolve the identity, and be associated with the returned actor

Discussion

The system will be asked to resolve the identity and return either a local instance or request a proxy to be created for this identity.

A remote distributed actor reference will forward all invocations through the system, allowing it to take over the remote messaging with the remote actor instance.