mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Distributed] Remove decodeNextArgument from protocol requirements
It's an ad-hoc requirement that has to be checked by the compiler, since it requires knowledge about a concrete serialization requirement type associated with a particular distributed actor system.
This commit is contained in:
@@ -285,7 +285,6 @@ extension DistributedActorSystem {
|
||||
let returnType = try invocationDecoder.decodeReturnType() ?? returnTypeFromTypeInfo
|
||||
// let errorType = try invocation.decodeErrorType() // TODO: decide how to use?
|
||||
|
||||
var decoderAny = invocationDecoder as Any
|
||||
// Execute the target!
|
||||
try await _executeDistributedTarget(
|
||||
on: actor,
|
||||
@@ -419,12 +418,7 @@ public protocol DistributedTargetInvocationDecoder : AnyObject {
|
||||
// /// buffer for all the arguments and their expected types. The 'pointer' passed here is a pointer
|
||||
// /// to a "slot" in that pre-allocated buffer. That buffer will then be passed to a thunk that
|
||||
// /// performs the actual distributed (local) instance method invocation.
|
||||
// mutating func decodeNextArgument<Argument: SerializationRequirement>(
|
||||
// into pointer: UnsafeMutablePointer<Argument> // pointer to our hbuffer
|
||||
// ) throws
|
||||
|
||||
// FIXME(distributed): remove this since it must have the ': SerializationRequirement'
|
||||
func decodeNextArgument<Argument>() throws -> Argument
|
||||
// mutating func decodeNextArgument<Argument: SerializationRequirement>() throws -> Argument
|
||||
|
||||
func decodeErrorType() throws -> Any.Type?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user