mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Distributed] Move property synthesis to DerivedConformanceDistributedActor
This commit is contained in:
@@ -6,4 +6,36 @@ import _Distributed
|
||||
|
||||
@available(SwiftStdlib 5.5, *)
|
||||
distributed actor DA {
|
||||
}
|
||||
|
||||
@available(SwiftStdlib 5.5, *)
|
||||
distributed actor First {
|
||||
distributed func one(second: Second) async throws {
|
||||
try await second.two(first: self, second: second)
|
||||
}
|
||||
}
|
||||
|
||||
@available(SwiftStdlib 5.5, *)
|
||||
distributed actor Second {
|
||||
distributed func two(first: First, second: Second) async {
|
||||
try! await first.one(second: self)
|
||||
}
|
||||
}
|
||||
|
||||
// ==== ------------------------------------------------------------------------
|
||||
|
||||
@available(SwiftStdlib 5.5, *)
|
||||
extension First {
|
||||
@_dynamicReplacement (for :_remote_one(second:))
|
||||
nonisolated func _impl_one(second: Second) async throws {
|
||||
fatalError()
|
||||
}
|
||||
}
|
||||
|
||||
@available(SwiftStdlib 5.5, *)
|
||||
extension Second {
|
||||
@_dynamicReplacement (for :_remote_two(first:second:))
|
||||
nonisolated func _impl_two(first: First, second: Second) async throws {
|
||||
fatalError()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user