mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Distributed] Implementing calling transport in resolve and assigning id/transp
This commit is contained in:
@@ -48,8 +48,11 @@ public protocol DistributedActor:
|
||||
///
|
||||
/// - Parameter identity: identity uniquely identifying a, potentially remote, actor in the system
|
||||
/// - Parameter transport: `transport` which should be used to resolve the `identity`, and be associated with the returned actor
|
||||
static func resolve<Identity>(_ identity: Identity, using transport: ActorTransport)
|
||||
throws -> Self where Identity: ActorIdentity
|
||||
// FIXME: move to generic identity here; depends on
|
||||
// static func resolve<Identity>(_ identity: Identity, using transport: ActorTransport)
|
||||
// throws -> Self where Identity: ActorIdentity
|
||||
static func resolve(_ identity: AnyActorIdentity, using transport: ActorTransport)
|
||||
throws -> Self
|
||||
|
||||
/// The `ActorTransport` associated with this actor.
|
||||
/// It is immutable and equal to the transport passed in the local/resolve
|
||||
|
||||
Reference in New Issue
Block a user