@@ -382,6 +382,7 @@ public protocol DistributedActorSystem<SerializationRequirement>: Sendable {
382
382
/// ## Errors
383
383
/// This method is allowed to throw because of underlying transport or serialization errors,
384
384
/// as well as by re-throwing the error received from the remote callee (if able to).
385
+ @available ( SwiftStdlib 5 . 11 , * )
385
386
func remoteCall< Act, Err, Res> (
386
387
on actor : Act ,
387
388
target: RemoteCallTarget ,
@@ -798,6 +799,7 @@ public protocol DistributedTargetInvocationEncoder<SerializationRequirement> {
798
799
799
800
/// Record an argument of `Argument` type.
800
801
/// This will be invoked for every argument of the target, in declaration order.
802
+ @available ( SwiftStdlib 5 . 11 , * )
801
803
mutating func recordArgument< Value/*: SerializationRequirement*/> (
802
804
_ argument: RemoteCallArgument < Value >
803
805
) throws
@@ -810,6 +812,7 @@ public protocol DistributedTargetInvocationEncoder<SerializationRequirement> {
810
812
811
813
/// Record the return type of the distributed method.
812
814
/// This method will not be invoked if the target is returning `Void`.
815
+ @available ( SwiftStdlib 5 . 11 , * )
813
816
mutating func recordReturnType< R/*: SerializationRequirement*/> ( _ type: R . Type ) throws
814
817
815
818
/// Invoked to signal to the encoder that no further `record...` calls will be made on it.
@@ -948,6 +951,7 @@ public protocol DistributedTargetInvocationDecoder<SerializationRequirement> {
948
951
/// buffer for all the arguments and their expected types. The 'pointer' passed here is a pointer
949
952
/// to a "slot" in that pre-allocated buffer. That buffer will then be passed to a thunk that
950
953
/// performs the actual distributed (local) instance method invocation.
954
+ @available ( SwiftStdlib 5 . 11 , * )
951
955
mutating func decodeNextArgument< Argument /*: SerializationRequirement*/> ( ) throws -> Argument
952
956
953
957
/// Decode the specific error type that the distributed invocation target has recorded.
@@ -996,6 +1000,7 @@ public protocol DistributedTargetInvocationResultHandler<SerializationRequiremen
996
1000
997
1001
/// Invoked when the distributed target execution returns successfully.
998
1002
/// The `value` is the return value of the executed distributed invocation target.
1003
+ @available ( SwiftStdlib 5 . 11 , * )
999
1004
func onReturn< Success/*: SerializationRequirement*/> ( value: Success ) async throws
1000
1005
1001
1006
/// Invoked when the distributed target execution of a `Void` returning
0 commit comments