[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:
Pavel Yaskevich
2024-04-22 14:18:08 -07:00
parent a08c24044e
commit e6b445b8d1
10 changed files with 31 additions and 31 deletions

View File

@@ -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> {