mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SE-0428] NFC: Rename _DistributedProtocol macro into Resolvable
The proposal was [accepted with modifications](https://forums.swift.org/t/accepted-with-modifications-se-0428-resolve-distributedactor-protocols/71366) The decision was made to change the spelling of the attached macro in the proposal from @DistributedProtocol to `@Resolvable` (or `@Distributed.Resolvable` if disambiguation is needed).
This commit is contained in:
@@ -11,12 +11,12 @@
|
||||
|
||||
import Distributed
|
||||
|
||||
@_DistributedProtocol
|
||||
@Resolvable
|
||||
protocol Greeter: DistributedActor where ActorSystem: DistributedActorSystem<any Codable> {
|
||||
distributed func greet(name: String) -> String
|
||||
}
|
||||
|
||||
// @_DistributedProtocol ->
|
||||
// @Resolvable ->
|
||||
|
||||
// CHECK: distributed actor $Greeter<ActorSystem>: Greeter,
|
||||
// CHECK-NEXT: Distributed._DistributedActorStub
|
||||
@@ -35,7 +35,7 @@ protocol Greeter: DistributedActor where ActorSystem: DistributedActorSystem<any
|
||||
// CHECK-NEXT: }
|
||||
|
||||
// Macro should be able to handle complex properties
|
||||
@_DistributedProtocol
|
||||
@Resolvable
|
||||
public protocol GetSet: DistributedActor, Sendable
|
||||
where ActorSystem: DistributedActorSystem<any Codable> {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user